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!

  1. first remove appropriate line app's info plist file
  2. put code instantiate initial view controller app delegate's application:didfinishlaunching: , set view controller rootviewcontroller of application's main uiwindow object (or embed uinavigationcontroller or uitabbarcontroller again can set rootviewcontroller of uiwindow). find code how here :)

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -