RT,now the new iOS version is 7! and if you use XCode 5 to create a new project,it will make you use ARC and StroyBoard in default,so how to change this setting?
- For ARC,you can click "Build Settings" in XCode,and then search "ARC", you can find a item Named "Apple LLVM 5.0 - Language - Objective C",please set the ARC to NO
- For remove storyboard,you can delete the files,and then create a new Controller with Xib file,and then add the code in the AppDelegate.m's launch method:
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; MainViewController *mainViewController = [[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil]; self.window.rootViewController = mainViewController; [mainViewController release]; [self.window makeKeyAndVisible]; // Override point for customization after application launch. return YES;then there is a important point need to pay attention to,that is you should delete the "Main Interface" in the General tab."delete" means clear the text in the field.
If you don't clear the main interface,and you use the device to debug,maybe your iPhone will black screen and can not response your cmd until it is shut down and then open.
Thanks,
Blues