Adding storyboard to existing project

后端 未结 6 766
温柔的废话
温柔的废话 2021-01-31 04:49

I have created a project without support of storyboards, but later I have added a storyboard. Storyboard work well and i see it\'s contents when loading app in emulator.

6条回答
  •  独厮守ぢ
    2021-01-31 05:10

    Those exact steps (I am using XCode 4.5 and iOS 6.0 ):

    1. Add new storyboard to the project by File->New->File...->Userinterface->storyboard
    2. Go to project summary and select MainStoryboard and select the storyboard name you just created.
    3. From AppDelegate.m file in method didFinishLaunchingWithOptions, comment everything except last statement which returns YES.

    That is all. Now you should see your Initial view as you launch the project.

提交回复
热议问题