ios - Missing storyboard -
i had storyboard based application. deleted storyboard because don't need it.
now when build project simulator it's running when try deploy real device throws this:
terminating app due uncaught exception 'nsinvalidargumentexception', reason: 'could not find storyboard named 'main' in bundle nsbundle (loaded)'
i don't want use storyboard.. try load "main" storyboard? remove it?
update:
var window: uiwindow? var mainnavigationcontroller: uinavigationcontroller? func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool { self.mainnavigationcontroller = uinavigationcontroller() var maincontroller: uiviewcontroller? = tinelineviewcontroller() self.mainnavigationcontroller!.pushviewcontroller(maincontroller!, animated: false) self.window = uiwindow(frame: uiscreen.mainscreen().bounds) self.window!.rootviewcontroller = maincontroller self.window!.makekeyandvisible() thank update appdelagate didfinishlaunchingwithoptions method. main controller screen shows have uiswipegesturerecognizer not handling request.. uiswipegesturerecognizer:
let postleft : selector = "postleft:" let postleftswipe = uiswipegesturerecognizer(target: self, action: postleft) postleftswipe.direction = uiswipegesturerecognizerdirection.left gotopostbutton.addgesturerecognizer(postleftswipe) should change something?
thank you!
- first remove appropriate line app's info plist file
- put code instantiate initial view controller app delegate's
application:didfinishlaunching:, set view controllerrootviewcontrollerof application's mainuiwindowobject (or embeduinavigationcontrolleroruitabbarcontrolleragain can setrootviewcontrollerofuiwindow). find code how here :)
Comments
Post a Comment