我有问题。我正在关注本教程
我的部分在我的 AppDelegate.m
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Register for alert notifications
[application registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert];
// Add the view controller's view to the window and display.
[_window addSubview:viewController.view];
[_window makeKeyAndVisible];
// Override point for customization after application launch.
return YES;
}
我的问题是我使用故事板作为我的主要视图。我没有xib。我收到的错误是“使用未声明的标识符viewContoller
。我猜它与故事板有关。有人可以告诉我如何使它与故事板一起工作。谢谢。