ref link:http://stackoverflow.com/questions/18932473/xcode-5-open-a-project-without-story-board
1) Remove Main.storyboard file and related view controller files linked to storyboard from your project.
2) Add new files with xib for your controller , if it is not added in compiled sources in build phases then add there manually.
3) Remove 'Main storyboard file base name' and 'Main storyboard file base name ipad' propertyfrom plist.
4) Change appdelegate didFinishLaunchingWithOptions file and add :
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] ;
[self.window makeKeyAndVisible];
just like :
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] ;
// Override point for customization after application launch.
TestViewController *test = [[TestViewController alloc] initWithNibName:@"TestViewController" bundle:nil];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:test];
self.window.rootViewController = nav;
[self.window makeKeyAndVisible];
return YES;
}
本文详细介绍了如何在Xcode 5中启动一个没有Storyboard文件的项目,包括删除与Storyboard关联的文件、手动添加XIB文件、修改AppDelegate文件以正确加载视图控制器等内容。
431

被折叠的 条评论
为什么被折叠?



