UIWindow endDisablingInterfaceAutorotationAnimated error appears in console when keyboard is dismissed interactively from collectionView in iOS9 only

I had the same problem on iOS9 but with a tableView. I implemented this along with self.tableView.keyboardDismissMode = .Interactive and it worked for me. // Dismiss keyboard when scrolling func scrollViewWillBeginDragging(scrollView: UIScrollView) { textView.resignFirstResponder() }

allowsBackgroundLocationUpdates in CLLocationManager in iOS9

This new property is explained in the WWDC session “What’s New in Core Location”. The default value is NO if you link against iOS 9. If your app uses location in the background (without showing the blue status bar) you have to set allowsBackgroundLocationUpdates to YES in addition to setting the background mode capability in … Read more

Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app

This issues seems to appear in Xcode 7.2 due to search path/include. Solve this in following way: Select your [projectName] in Xcode TARGETS. Go to Build Settings tab. Make sure that the filter is set to “All” and not “Basic”. Search “Header Search Paths” Double click and add this path to both “Debug” and “Release”: … Read more

How to fetch all contacts record in iOS 9 using Contacts Framework

Both other answers do only load contacts from the container with the defaultContainerIdentifier. In a scenario, where the user has more than one container (i.e. an Exchange and an iCloud account which both are used to store contacts), this would only load the contacts from the account that is configured as the default. Therefore, it … Read more

Is it possible to opt your iPad app out of multitasking on iOS 9

To opt-out (disable) multi-tasking for your application: Select your Target → General Section → Scroll Down and check Requires full screen It gets applied to the plist’s UIRequiresFullScreen key value. Note: Apps are required to support all screen orientations if it supports multitasking. Otherwise, apps will get the following error on publishing: Invalid Bundle. iPad … Read more