uiviewcontroller - Changing the initial screen on ios -


i trying add login screen app when tried changing initial view controller login screen when change initial view controller pointer has no effect. have tried suggestions in:

ios 7 - failing instantiate default view controller did not work me. first screen under navigation controller instead showing intended initial view before login added.

storyboard screenshot

app delegate

func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool {     let mainstoryboard: uistoryboard = uistoryboard(name: "main", bundle: nil)      let centerviewcontroller = mainstoryboard.instantiateviewcontrollerwithidentifier("viewcontroller") as!viewcontroller      let drawerviewcontroller = mainstoryboard.instantiateviewcontrollerwithidentifier("drawerviewcontroller") as!drawerviewcontroller      let leftsidenav = uinavigationcontroller(rootviewcontroller: drawerviewcontroller)     let centernav = uinavigationcontroller(rootviewcontroller: centerviewcontroller)      centercontainer = mmdrawercontroller(centerviewcontroller: centernav, leftdrawerviewcontroller: leftsidenav)      centercontainer!.opendrawergesturemodemask = mmopendrawergesturemode.panningcenterview;     centercontainer!.closedrawergesturemodemask = mmclosedrawergesturemode.panningcenterview;      //works when comment out navigation not work     //window!.rootviewcontroller = centercontainer     window!.makekeyandvisible()        return true } 


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -