查看切换问题

时间:2011-12-11 18:15:36

标签: ios ios5 uiviewcontroller xcode4.2

我一直收到这个错误 - 不兼容的指针类型将'ViewController'传递给'UIViewController *'类型的参数,并且无法找出错误。

这是错误的代码:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.

    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];
    return YES;
} 

0 个答案:

没有答案