Adding storyboard to existing project

后端 未结 6 779
温柔的废话
温柔的废话 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:07

    1. Add Main.storyboard

    2. Add row in Info.plist > Main storyboard file base name:Main

    3. Edit code:

    • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //Override point for customization after application launch. return YES; }

提交回复
热议问题