Make iOS project without storyboard
2014-01-23 17:46
253 查看
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' property from plist.
4) Change appdelegate didFinishLaunchingWithOptions file and add :
just like :
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' property from 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; }
相关文章推荐
- iOS: using xcode 4.3 to create nav controller + tab view + table view without storyboard
- ios应用程序的启动流程with or without storyboard
- iOS storyboard中四种好用的界面切换
- IOS开发-使用Storyboard进行界面跳转
- XCode iOS project only shows “My Mac 64-bit” but not simulator or device
- IOS学习之旅之6 控制旋转和新建storyboard进行布局拆分
- IOS开发-使用Storyboard进行界面跳转及传值
- iOS 调出storyboard里面起始Controller的箭头
- iOS storyboard 任意使用static tableView
- 【iOS知识学习】_StoryBoard基础知识理解
- iOS storyboard 多个子视图均匀排列
- IOS Storyboard中使用Segue传值
- iOS绘图例1:使用StoryBoard
- iOS 如何移除Main.storyboard
- IOS 移除storyboard
- iOS StoryBoard 总结
- iOS从工程中移除storyBoard,以swift为例子
- iOS UI篇10- Storyboard(Storyboard Reference)
- iOS Storyboard unwind segues使用小结
- Crashlytics was applied to a project without an Android plugin.