2011-09-22 80 views

回答

1

最好的方法是,在應用程序委託的方法來處理移除通知,發送使用NSNotificationCenter

[[NSNotificationCenter defaultCenter] postNotification:@"remoteNotification" withObject:whateverYouWantHere]; 

然後使用NSNotificationCenter添加任何通知感興趣的UIViewController作爲「remoteNotification」名稱的觀察者。

相關問題