Questions tagged [ios9]
iOS 9 is the ninth version of Apple's iOS mobile operating system. It was announced at the company's Apple Worldwide Developers Conference (WWDC) on June 8, 2015.
ios9
4,160
questions
1601
votes
30
answers
959k
views
Transport security has blocked a cleartext HTTP
What setting do I need to put in my info.plist to enable HTTP mode as per the following error message?
Transport security has blocked a cleartext HTTP (http://) resource
load since it is insecure....
612
votes
27
answers
383k
views
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection
I am facing the Problem when I have updated my Xcode to 7.0 or iOS 9.0.
Somehow it started giving me the Titled error
"The resource could not be loaded because the App Transport Security
policy ...
468
votes
8
answers
446k
views
How do I load an HTTP URL with App Transport Security enabled in iOS 9? [duplicate]
So, the new beta SDK of iOS released last night has "App Transport Security" which encourages developers to use https instead of http. In principle, this is a great idea, and I already use https in ...
427
votes
6
answers
598k
views
iOS9 Untrusted Enterprise Developer with no option to trust
This is not a duplicate of Untrusted App Developer. Since iOS9 there is no option to trust an enterprise build. Has anyone found a workaround?
395
votes
7
answers
187k
views
New warnings in iOS 9: "all bitcode will be dropped"
I have this new warning about the Google Framework in my app:
(null): URGENT: all bitcode will be dropped because
'/Users/myname/Library/Mobile
Documents/com~apple~CloudDocs/foldername/appname/...
227
votes
14
answers
151k
views
Delay/Wait in a test case of Xcode UI testing
I am trying to write a test case using the new UI Testing available in Xcode 7 beta 2. The App has a login screen where it makes a call to the server to login. There is a delay associated with this as ...
207
votes
11
answers
121k
views
CFNetwork SSLHandshake failed iOS 9
has anyone with the iOS 9 beta 1 had this issue?
I use standard NSURLConnection to connect to a webservice and as soon as a call is made to the webservice i get the below error. This is currently ...
204
votes
17
answers
316k
views
Add views in UIStackView programmatically
I'm trying to add views in UIStackView programmatically.
For now My code is:
UIView *view1 = [[UIView alloc]init];
view1.backgroundColor = [UIColor blackColor];
[view1 setFrame:CGRectMake(0, 0, 100, ...
189
votes
3
answers
198k
views
What does the shrink-to-fit viewport meta attribute do?
I'm having trouble finding documentation for this. Is it Safari specific?
There was a recent bug in iOS 9 (here), the solution to which is adding shrink-to-fit=no to the viewport meta.
What does ...
170
votes
29
answers
46k
views
UI Testing Failure - Neither element nor any descendant has keyboard focus on secureTextField
This is my case:
let passwordSecureTextField = app.secureTextFields["password"]
passwordSecureTextField.tap()
passwordSecureTextField.typeText("wrong_password") //here is an error
UI Testing ...
168
votes
5
answers
30k
views
"changing property masksToBounds in transform-only layer, will have no effect" in Xcode 7
I am receiving this warning in the debugger console when I launch my app on iPad Xcode 7 beta 6. There was no such warning till Xcode 6. I don't understand why it may have come and that too, only on ...
157
votes
1
answer
12k
views
Error: _handleNonLaunchSpecificActions in iOS9
I am getting the following error on iOS 9:
-[UIApplication_handleNonLaunchSpecificActions:
forScene:
withTransitionContext:
completion:] unhandled action ->
<...
154
votes
6
answers
167k
views
Change status bar text color to light in iOS 9 with Objective-C [duplicate]
In iOS 9, how do I change the color of the status bar text to white?
152
votes
46
answers
166k
views
iOS Universal Links are not opening in-app
So I followed this tutorial exactly and use the same values as the ones provided:
https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios-9
The Apple Association file is also ...
148
votes
13
answers
224k
views
How can I add NSAppTransportSecurity to my info.plist file?
https://developer.apple.com/videos/wwdc/2015/?id=711 @5:55
I can't seem to be able to add this to my info.plist. There is no value it. I'm running XCode Version 7.0 beta (7A121l), and testing on iOS9....
144
votes
14
answers
115k
views
iOS 9 not opening Instagram app with URL SCHEME
The following URL opens on iOS 8.3 and lower, but it does not work and iOS 9
let instagramURL = NSURL(string: "instagram://app")
Why won't the URL open?
137
votes
13
answers
140k
views
NSURLSession/NSURLConnection HTTP load failed on iOS 9
Tried to run my existing app on iOS9 but getting failure while using AFURLSessionManager.
__block NSURLSessionDataTask *task = [self.sessionManager dataTaskWithRequest:request completionHandler:^(...
125
votes
17
answers
46k
views
iOS 9 Xcode 7 - Application appears with black bars on top and bottom
Installed the app on iPhone 6 iOS9 and here is what happened. Notice black bars on top and bottom. It works just fine on iOS8. How I can fix it?
I've tried building with Xcode 6.4 & 7. Same result....
103
votes
14
answers
31k
views
UIStackView "Unable to simultaneously satisfy constraints" on "squished" hidden views
When my UIStackView "rows" are squished, they throw AutoLayout warnings. However, they display fine and nothing else is wrong besides these sorts of loggings:
Unable to simultaneously satisfy ...
103
votes
12
answers
47k
views
Unexpected CFBundleExecutable key
After spending some time googling, something tells me that the issue is new.
We had a fully functional project supporting iOS7-8. Of course it was multiple times successfully submitted to AppStore.
...
92
votes
10
answers
65k
views
"Application windows are expected to have a root view controller at the end of application launch" error when running a project with Xcode 7, iOS 9
After running function
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
there is a crash:
Assertion failure in
-[UIApplication ...
92
votes
6
answers
69k
views
How can I create UIStackView with variable spacing between views?
I have a simple horizontal UIStackView with several UIViews stacked inside. My goal is to create variable spacing between views. I am well aware that I can create constant space between the subviews ...
89
votes
6
answers
65k
views
How to delete app Build in New iTunes Connect Site?
I want to upload my app's new version on iTunes connect, but I can't submit it as I mention here.
Now I want to delete uploaded build and upload new build with save version, but I get an error as ...
88
votes
1
answer
98k
views
What is causing this: Cannot jump from switch statement to this case label [duplicate]
This is a switch statement that I am getting errors on:
switch (transaction.transactionState) {
case SKPaymentTransactionStatePurchasing:
// show wait view here
...
87
votes
7
answers
85k
views
Swipe-able Table View Cell in iOS 9
I want my table list to have a swipe-able menu like in iOS 8 (first introduced in iOS 7).
I've found a Ray Wenderlich guide that is clear on how to do it, but it was written a year and 4 months ago ...
87
votes
24
answers
101k
views
the behavior of the UICollectionViewFlowLayout is not defined, because the cell width is greater than collectionView width
2015-08-18 16:07:51.523 Example[16070:269647] the behavior of the
UICollectionViewFlowLayout is not defined because: 2015-08-18
16:07:51.523
Example[16070:269647] the item width must be less than
the ...
84
votes
4
answers
40k
views
Is it possible to opt your iPad app out of multitasking on iOS 9
I have a large app that I will need some time to optimize for iOS9.
Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, is ...
84
votes
4
answers
12k
views
iOS9 storyboard what is unhandled action (handleNonLaunchSpecificActions)?
I've noticed the following error popping up in the console when running my app on iOS 9 when using a storyboard. I'm using xCode7. Is this something I need to be concerned about?
-[UIApplication ...
77
votes
5
answers
40k
views
Core Data - Failed to load optimized model at path
I'm getting some of these prints in my console while running my application from Xcode 6 in my iPhone 6 with iOS 9 beta 5:
CoreData: Failed to load optimized model at path '/var/mobile/Containers/...
76
votes
20
answers
71k
views
How to fetch all contacts record in iOS 9 using Contacts Framework
Most part of AddressBook framework is deprecated in iOS 9. In the new Contacts Framework documentation only shows how to fetch records matches a NSPredicate, but what if I want all the record?
71
votes
19
answers
66k
views
Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app
In iOS, I update 7.2. I'm able to build my existing project to my device with no problem. When it came time to archive the project to prepare for submission to the app store, however, I'm getting a ...
68
votes
5
answers
48k
views
iOS 9 Safari: changing an element to fixed position while scrolling won't paint until scroll stops
I've been developing a site and taking advantage from the rather good jQuery Sticky Kit plugin. It operates by switching the position property to fixed and back when appropriate. Runs very smoothly in ...
67
votes
4
answers
12k
views
Xcode 7 iOS 9 UITableViewCell Separator Inset issue
This is not a question, rather a solution to the problem I faced.
In Xcode 7, when the application is run on iOS 9 on iPad devices, the UITableViewCell leaves some margin onto the left side of the ...
66
votes
6
answers
41k
views
allowsBackgroundLocationUpdates in CLLocationManager in iOS9
I'm using CoreLocation framework in my app in Xcode7(pre-released),and I noticed that there is a newly added property called allowsBackgroundLocationUpdates in CLLocationManager class.
What's the ...
65
votes
11
answers
74k
views
XPC connection interrupted in Xcode 7 for iOS 9
I recently updated to Xcode 7 and upgraded my iPhone to iOS 9. I have developed and released an iOS app that had worked perfectly fine on the latest version of iOS 8 and Xcode 6.
Upon trying to go ...
64
votes
3
answers
14k
views
UIWindow endDisablingInterfaceAutorotationAnimated error appears in console when keyboard is dismissed interactively from collectionView in iOS9 only
I am getting this strange error in iOS 9 only:
[UIWindow endDisablingInterfaceAutorotationAnimated:] called on UITextEffectsWindow: ...without matching
-beginDisablingInterfaceAutorotation. Ignoring.
...
61
votes
4
answers
32k
views
changing property contentsGravity in transform-only layer, will have no effect
I started to create a very simple tic-tac-toe game.
The main goal is to make the view proportional to all screen sizes of all iOS devices.
So I put the image on a ViewController, make it full size of ...
61
votes
17
answers
51k
views
iOS 9 Splash screen is black
My apps' splash screens are all plain black after upgrading to iOS9.
Does anybody know why this is? Some of them are using a .xib splash screen and some are using images, but they're all just black ...
60
votes
4
answers
56k
views
What's the height of a UITabBar on iOS 8, iOS 9, iOS 10, and iOS 11?
The height of the UITabBar seems to have changed between iOS 7 and 8/9/10/11. I'm posting this question for others to easily find the answer.
So: What's the height of a UITabBar on iOS 8/9/10/11 on ...
60
votes
2
answers
29k
views
What is the impact of the "Requires full screen" option in Xcode for an iPhone-only app?
For an iPad-only app or a universal app, the "Requires full screen" option tells Xcode/iOS whether the app supports iPad multitasking feature introduced in iOS 9. But the "Requires full screen" ...
58
votes
9
answers
49k
views
IOS 9 Error Domain=kCLErrorDomain Code=0 "(null)"
Code below should get current location. But above error is generated. Function didUpdateLocations never gets called.
Running this on a device (iPhone 5s)iOS 9.1. Info.plist has Required device ...
58
votes
2
answers
3k
views
WKWebView loads HTML content too slowly in iOS 9 using swift
I have been trying to integrate the WKWebView as a subview of another webview in a UIViewController. I've been able to load the content and communicate properly with the swift and JavaScript. However, ...
57
votes
6
answers
86k
views
UIAlertController - add custom views to actionsheet
I'm trying to make the actionsheet as it shows in the messages app on iOS when we try to attach an image as in the screenshot.
I realized in new UIAlertController, we can't fit any custom views. Any ...
55
votes
13
answers
32k
views
iOS 9 searchBar disappears from table header view when UISearchController is active
The structure:
View1 (click a button) -> present modally (MyModalView: UITableViewController)
MyModalView has UISearchController embedded. The searchBar of UISearchController is placed in ...
55
votes
4
answers
49k
views
Universal links on iOS vs. deep links (URL schemes)
As I'm reading, iOS 9 introduced Universal Links. In the "Support Universal Links" section in Apple's App Search Programming Guide, it says that this is not exactly like deep linking with URL schemes, ...
55
votes
3
answers
41k
views
How to use new San Francisco font in iOS 9?
Before iOS 9 to reference fonts we used fontWithName of UIFont:
[UIFont fontWithName:@"HelveticaNeue" size:18]
Now we're moving to iOS 9. How to reference a new San Francisco font in the same way?
...
55
votes
19
answers
17k
views
Xcode 7 - Code coverage data generation failed
When I run my tests I get an error:
Code coverage data generation failed.
Unable to retrieve the profile data files from 'UIDevice'.
On console was printed warning:
Timed out waiting 120 ...
54
votes
8
answers
48k
views
Swift 2 / iOS 9 - libz.dylib not found
I'm using some external codes from google in my new Swift 2.0 project that required "libz.dylib" in earlier versions. After updating to the new Xcode / the new SDK.
Xcode is now unable to import the ...
53
votes
7
answers
65k
views
Find first element matching condition in Swift array (e.g. EKSource)
I would like to find the first EKSource of type EKSourceType.Local with a "single"-line expression in Swift. Here is what I currently have:
let eventSourceForLocal =
eventStore.sources[...
53
votes
10
answers
45k
views
sendAsynchronousRequest was deprecated in iOS 9, How to alter code to fix
Below is my code I am getting the issue with:
func parseFeedForRequest(request: NSURLRequest, callback: (feed: RSSFeed?, error: NSError?) -> Void)
{
NSURLConnection.sendAsynchronousRequest(...