2016-05-05 53 views

回答

0

檢查應用程序是否正在通過錄像通知啓動。在

中輸入以下內容
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 

     if (launchOptions) 
    { 
      NSDictionary * appLaunchDict = [[NSDictionary alloc]initWithDictionary:launchOptions]; 

      NSDictionary* userInfo = [appLaunchDict objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; 
      if (userInfo){ 
      // Call your method here which will show alert or any thing you want. 
      } 
    } 
} 
相關問題