-(void)application :(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
[self addMessageFromRemoteNotification:userInfo updateUI:NO];
}
我需要在performSelectorInBackground方法中運行上面的方法。但是有單個對象的選項。如何更改我的代碼?用performSelector方法傳遞兩個參數
將需要發送的對象包裝到數組中。 :) – Luke 2013-03-27 11:08:52
我該怎麼做? – user2134883 2013-03-27 11:13:38
我相信這是你正在尋找作爲參考: http://stackoverflow.com/questions/8439052/ios-how-to-implement-a-performselector-with-multiple-arguments-and-with -afterd – 2013-03-27 11:15:36