XCode 7: Launch screens may not set custom classnames

Note that the launch screen is not a fully customizable view controller. You cannot specify a custom class name in the storyboard and expect the system to give you the option to execute code at this stage by calling viewDidLoad. Remember, the app hasn’t launched yet. Launch Screen Constraints The system loads the launch screen … Read more

MapKit not showing custom Annotation pin image on iOS9

Instead of creating an MKPinAnnotationView, create a plain MKAnnotationView. The MKPinAnnotationView subclass tends to ignore the image property since it’s designed to show the standard red, green, purple pins only (via the pinColor property). When you switch to MKAnnotationView, you’ll have to comment out the animatesDrop line as well since that property is specific to … Read more

This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes

Do not change UI from anything but the main thread. While it may appear to work on some OS or devices and not others, it is bound to make your application unstable, and crash unpredictably. If you must respond to a notification, which can happen in the background, then ensure UIKit invocation takes place on … Read more

How to get Wifi SSID in iOS9 after CaptiveNetwork is deprecated and calls for Wifi name are already blocked

Register your app as Hotspot helper. #import <NetworkExtension/NetworkExtension.h> NSArray * networkInterfaces = [NEHotspotHelper supportedNetworkInterfaces]; NSLog(@”Networks %@”,networkInterfaces); UPDATE (Sept. 11th, 2015) The following Captive Network APIs have been re-enabled in the latest version of iOS 9 instead. CNCopySupportedInterfaces CNCopyCurrentNetworkInfo UPDATE (Sept. 16th, 2015) If you still prefer to use NetworkExtension and Apple gave you permission to … Read more

iOS 9 Facebook login simulator -canOpenURL: failed for URL: “fbauth2:///” – error: “(null)”

Why do I see console messages like ‘canOpenURL: failed for URL: “fb…://’ or ? This is an Xcode warning indicating the the canOpenURL: call returned false. As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above, you can ignore this warning.

iTunes Connect error: “An In-App Purchase has been returned”

I had the same problem, following is the screenshot of how my in-app purchase’s details page did show a yellow highlighted portion: What I did is: added another language.. then deleted the previous rejected language, then added the previously rejected-then-deleted language and then deleted the second added language. 🙂 And it worked!

Facebook share content only shares URL in iOS 9

I was having the same issue, and the workaround I’m using is to set the Share Dialog mode to use the native app. I’m using Obj-C, but should be pretty much the same in Swift: FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init]; dialog.fromViewController = viewController; dialog.shareContent = content; dialog.mode = FBSDKShareDialogModeNative; // if you don’t set … Read more