Xcode 4.2 iOS Empty Application and storyboards

后端 未结 3 1571
北荒
北荒 2020-12-13 09:16

I\'m an Xcode newbie, and I\'m trying to make my first training app. Since apparently Empty Application template is the only template that offers pre-integrated Core Data, I

3条回答
  •  醉梦人生
    2020-12-13 09:40

    For an Empty Application project, you have to do two things, after you've added your Storyboard file...

    1. Add a row to your project Info.plist file:

      Key: Main storyboard file base name
      Value: Storyboard
      

      (or whatever you named your storyboard file)

    2. Delete the contents of application:didFinishLaunchingWithOptions: except return YES;:

      - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
      {
          return YES;
      }
      

提交回复
热议问题