Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Feb 15th, 2012  |  syntax: Objective C  |  size: 0.28 KB  |  views: 186  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         UIStoryboard *storybrd = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
  2.         UIViewController *mycontroller =[storybrd instantiateViewControllerWithIdentifier:@"myCtrl"];
  3.         [storybrd instantiateViewControllerWithIdentifier:(NSString *)mycontroller];
clone this paste RAW Paste Data