I am trying to develop an iOS application for master parts (iPad only) from the xCode 6 template. It works fine with iOS 8, but running it on iOS 7.0 or 7.1 causes a runtime crash when I commented:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
To reproduce the error:
- Open xCode 6
- File> New> Project
- Select “Application Master Data” below “iOS Application”
- Change the project goal to 7.0
- Run on an emulator or device
I have researched and it seems that object types are different on iOS 7 and iOS 8:
- In iOS8, self.window.rootViewController is a UISplitViewController
- In iOS7, self.window.rootViewController is the first UINavigationController (left)
Why is this behavior?
source share