In this chapter we begin to formally create a project. Open Xcode, and then choose Create a new Xcode project. Then, for example, select Application under iOS. Explanation of several types. The first master-detail. From the name you can tell, is the menu on the left and the layout on the right for details. This layout is typically used for the ipad. The second page-based is typically used in e-book reader type apps. The third is a single-page app. Is the most common type at the moment. It's also the type we're going to use now. The fourth type of tabbed is the layout with the Bottom tab label. The 5th type of app for games. The first 4 kinds of the main difference is that some files are created automatically. Can be modified later. So don't be too tangled with which. Only single view automatically creates the fewest files, closest to the empty items, so it is generally recommended to use this type
Next enter the name of your app, as well as the organization name and organization logo, language Select Swift, set we only consider the iphone, so just select the iphone, note that the best thing is to put the user core data hook, core data is an official ORM framework provided, and EF types. When selected, some code is added to the global location by default. If you don't have a choice at first, and then you want to use core data, there's a little bit of trouble, so it's advisable to hook up. Then choose to save the address, and whether it is included in git management, if you want to hook up.
For the post-creation interface, explain the following file structure, Appdelegate.swift is a global file that handles various global events of the app, like the global file in. Net. Viewcontroller.swift is a background file. As you can understand, the Aspx.cs file in. Net. main.stroyboard files are used to edit all the interface of the app and can be understood as a collection of ASPX files. Assets.xcassets is used to save all the picture resources in the app. Launchscreen.storyboard is used to edit the launch effect of the app. Info.plist is a configuration file that is equivalent to the Web. Net. config file. The Firstclass.xcdatamodeld is used to store CoreData objects.
iOS Development Series-New project