我試圖讓我的應用程序與推送通知一起工作,並遵循本教程,它幾乎像一個魅力...我雖然試圖運行應用程序時遇到問題,我認爲它的xcode3到Xcode4問題。 ..推送通知問題?
我得到這個錯誤: 2012-03-02 15:00:55.786 PushChat1 [5276:707]的應用預計將有在應用程序啓動的最後一個根視圖控制器
而且下面是我在我的申請didFinishLaunchingWithOptions
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//self.window.rootViewController = self.viewController;
_window.rootViewController = _viewController;
[self.window makeKeyAndVisible];
// Let the device know we want to receive push notifications
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
return YES;
}
我真的希望得到幫助,並提前致謝:-)
它似乎是零?不是經文你的意思?和nib文件...是否與xib相同? – 2012-03-02 14:20:46
是的,它是一樣的。閱讀@joris答案! – calimarkus 2012-03-02 14:24:00