• 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
IOS focus issue when presenting a view controller from a new storyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOS focus issue when presenting a view controller from a new storyboard


  • Subject: IOS focus issue when presenting a view controller from a new storyboard
  • From: Alex Zavatone <email@hidden>
  • Date: Thu, 11 Jun 2015 13:48:55 -0400

I'm back into my modular design phase where I build one part of the iOS application in one storyboard, then another part in another and just do a presentViewController with the root view or nav controller from the storyboard that contains it.

This works almost as expected except for one thing.

After the view controller is presented from the other storyboard, the first tap on the scene is always ignored.  It's like the first tap brings the new view into focus and then once it's in focus, every other tap and gesture works as expected, just not the first one.

If it matters.  I'm calling the method to push a new viewController in a new storyboard from the viewDidAppear of the iOS 8 app's first viewController.

Here's the method that I've got doing it and it works great besides that one issue.

Any insight into this would be great.  Thanks much

- (void)launchModuleInOtherStoryboard {

   // Load a separate storyboard from the bundle to handle this.

   NSString *storyboardName = @"Module"; // If we need to specify the device idiom at the end of the name, we can.
   UIStoryboard *accountProvisioningStoryboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];

   // To push a new set of scenes with a new navigation Controller, it is done like this:
   // Declare the identifiers of the nav controller and view controller that start the storyboard
   // Don't use the initialViewController UIStoryboard method
   NSString *initialNavControllerIdentifier = @"Nav Controller";
   NSString *initialViewControllerIdentifier = @"Marketing Material";

   UINavigationController *accountProvisioningNC = [accountProvisioningStoryboard instantiateViewControllerWithIdentifier:initialNavControllerIdentifier];
   UIViewController *accountProvisioningVC = [accountProvisioningStoryboard instantiateViewControllerWithIdentifier:initialViewControllerIdentifier];

   [accountProvisioningNC pushViewController:accountProvisioningVC animated:NO];

   [accountProvisioningNC setModalTransitionStyle:UIModalTransitionStyleCrossDissolve];

   // Present the view controller;
   [self presentViewController:accountProvisioningNC animated:YES completion:NULL];

}
_______________________________________________

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: IOS focus issue when presenting a view controller from a new storyboard
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: Another NSTreeController/NSOutlineView/NSIndexPath Question
  • Next by Date: Re: Playground
  • Previous by thread: Re: Playground
  • Next by thread: Re: IOS focus issue when presenting a view controller from a new storyboard
  • Index(es):
    • Date
    • Thread