• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8


  • Subject: Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8
  • From: Ben Kennedy <email@hidden>
  • Date: Mon, 22 Sep 2014 19:14:31 -0700

On 22 Sep 2014, at 6:36 pm, Herman Chan <email@hidden> wrote:

> GlobalSettingsViewController *c = [[GlobalSettingsViewController alloc] initWithGroupDataSource:self.dataSource];
> navigationController = [[UINavigationController alloc] initWithRootViewController:c];
> UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
> [vc presentViewController:navigationController animated:YES completion:nil];

Is there a particular reason why you are fishing out the root view controller via the delegate singleton?  Does it work properly if your LeftMenuViewController instance (the class which according to your trace is making the call) simply calls presentViewController on itself instead?

b

--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca






_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8
      • From: Herman Chan <email@hidden>
References: 
 >crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8 (From: Herman Chan <email@hidden>)

  • Prev by Date: Re: -[UIApplication statusBarFrame] changes in iOS 8
  • Next by Date: Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8
  • Previous by thread: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8
  • Next by thread: Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8
  • Index(es):
    • Date
    • Thread