ios - Why a singleView application doesn't load a storyboard if a storyboard is added later to the project? -


i created new singleview application without storyboard (say firstproject) , single view application storyboard (say secondproject)and added storyboard in application didn't have storyboard previously. went in firstproject , changed class of storyboard viewcontroller class in identity inspector. after opened other files in 2 projects individually , made changes in code same in corresponding files in 2 projects.

now when run project had storyboard @ time of creation shows white blank screen other application (in storyboard added later) shows black screen no errors , no warnings.. difference in these 2 files?

what missing. how tell application should load view storyboard , not xib file there none?

i second "good job" building scratch grok storyboards.

you need delete template code , return yes; in application:didfinishlaunchingwithoptions:

complete process

  • create new project using "empty application" template.
  • new file, user interface, storyboard
  • set storyboard in targets summery (updates info.plist)
  • delete template code , return yes; in application:didfinishlaunchingwithoptions:

enter image description here

enter image description here


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -