xcode 6.1怎么创建empty application
1个回答
2014-12-21
展开全部
下面是解决的方法:
1.新建一个single view application
2.打开 Info.plist,删除里面的 Launch screen interface file....以及 Main storyboard file base name...
3.删除Main.storyboard以及LaunchScreen.xib
4.在AppDelegate.m修改如下(其中MainViewController是自己新建的 viewController)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds] ];
self.window.rootViewController = [[MainViewController alloc]init];
[self.window makeKeyAndVisible];
return YES;
}
这样 就全部OK了
1.新建一个single view application
2.打开 Info.plist,删除里面的 Launch screen interface file....以及 Main storyboard file base name...
3.删除Main.storyboard以及LaunchScreen.xib
4.在AppDelegate.m修改如下(其中MainViewController是自己新建的 viewController)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds] ];
self.window.rootViewController = [[MainViewController alloc]init];
[self.window makeKeyAndVisible];
return YES;
}
这样 就全部OK了
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询