织梦CMS - 轻松建站从此开始!

沙龙国际_salon365.com_沙龙国际www.salon365.com

当前位置: 主页 > 沙龙国际真人娱乐 >

IOS编程问题

时间:2017-08-09 05:48来源:未知 作者:admin 点击:
初学iOS编程,用xcode4.4,模拟器用的iOS5.1系统,加了一个Map Kit控件,结果每次启动都说 Application windows are expected to have a root view controller at the end of application launch 怎么解决啊? 部分代码

初学iOS编程,用xcode4.4,模拟器用的iOS5.1系统,加了一个Map Kit控件,结果每次启动都说
Application windows are expected to have a root view controller at the end of application launch
怎么解决啊?
部分代码如下:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[[UIWindowalloc] initWithFrame:[[UIScreenmainScreen] bounds]] autorelease];
    self.window.rootViewController = [[UIViewControlleralloc] initWithNibName:@"ViewController"bundle:nil];
    //add a root view controller
    // Override point for customization after application launch.
    self.window.backgroundColor = [UIColorwhiteColor];
    [self.window makeKeyAndVisible];
织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
推荐内容