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
Post a Comment