ios - changing initial view on master detail -


- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {      /*      uisplitviewcontroller *splitviewcontroller = (uisplitviewcontroller *)self.window.rootviewcontroller;     uinavigationcontroller *navigationcontroller = [splitviewcontroller.viewcontrollers lastobject];     navigationcontroller.topviewcontroller.navigationitem.leftbarbuttonitem     = splitviewcontroller.displaymodebuttonitem;     splitviewcontroller.delegate = self;      */       return yes;  } 

after commenting off part program work . detail view doesn't have "menu" button .

but without commenting off , got error .

testrun[9491:778735] -[login viewcontrollers]: unrecognized selector sent instance 0x7fac68409760 fproject[9491:778735] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[login viewcontrollers]: unrecognized selector sent instance 0x7fac68409760'

i want set login page first , log master detail . couldn't . please . .


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -