-
(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
// 打印到日志 textView 中
[self.viewController addLogString:[NSString stringWithFormat:@"backgroud : %@",userInfo]];completionHandler(UIBackgroundFetchResultNewData);
}
以上代码为AppDelegate.m中的userInfo .这个userInfo是不是局部产量?我需要在viewcontroller.m中调用它,比如说把它拼接到字符串里面,我该使用什么方法呢?