iphone - Accessing UIViewController programmatically in Storyboard -


i'm working on app has several viewcontrollers , there particular viewcontroller "login viewcontroller" accessed every uiviewcontroller, know can achieve using segue each controller loginviewcontroller i'm sure not best solution, best solution achieve this?

use this...variable vc return viewcontroller looking for

  uistoryboard *astoryboard = [uistoryboard storyboardwithname:@"mainstoryboard" bundle:[nsbundle mainbundle]];   yourviewcontroller *vc = [astoryboard instantiateviewcontrollerwithidentifier:@"yourviewcontroller"]; 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -