Note that there are some explanatory texts on larger screens.

plurals
  1. POApp crashes when didFinishLaunchingWithOptions is called
    primarykey
    data
    text
    <p>I have an the app when notification is fired i get a notification bar when the app is in background ,when i tap on that bar it navigates into tableview of the notification set . When i quit the app from background i am receiving notification but when tap on the notification bar the app is getting crashed since its not getting indexpath of the tableview.</p> <p><strong>When the app is quit in background and reloading the app should enter didfinishlaunching.</strong></p> <p>In appDidFinishLaunching i am calling the method which navigates into tableview </p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.viewController = [[PPViewController alloc] initWithNibName:@"ViewController_iPhone" bundle:nil] ; UILocalNotification *notification = [launchOptions objectForKey: UIApplicationLaunchOptionsLocalNotificationKey]; if (notification) { int remedyID = [[notification.userInfo objectForKey:kRemindMeNotificationRemedyIDKey] intValue]; NSDictionary *reminderDetails =[NSDictionary dictionaryWithObjectsAndKeys:notification.userInfo,@"kRemindMeNotificationDataKey",[NSNumber numberWithInt:remedyID],kRemindMeNotificationRemedyIDKey,nil]; [_viewController goToReminder:reminderDetails showNotification:YES]; } [application setStatusBarStyle:UIStatusBarStyleBlackTranslucent]; self.viewController = [[PPViewController alloc] initWithNibName:@"PPViewController" bundle:nil]; self.window.rootViewController = self.viewController; [self.window makeKeyAndVisible]; return YES; } **This is the code which navigates into tableview in another viewcontroller** - (void)goToReminder:(NSMutableDictionary *)reminderDictionary showNotification:(BOOL)shouldShowNotification { NSIndexPath *selectedSymptIP = [NSIndexPath indexPathForRow:selectedSymptomIndex inSection:keyIndexNumber]; [self tableView:symptomsTableView didSelectRowAtIndexPath:selectedSymptIP]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload