![]() Tapping on “+” will add a row to the list containing the date/time the row was added. ![]() When you play with it, you’ll see that you start off in on a list screen with a “+” and “Edit” button in the navigation bar. This application is already a working application though, so make sure you build and run (Cmd+R) the application first to see what it does already. Core Data is great to learn about, but we’re just taking a look at the core parts of creating an iOS application in this series.īefore you jump into writing our custom code, lets take a look at what you can learn from the Swift code that was already generated for you by Xcode when you selected the “Master-Detail Application” template. Lastly, for the “Devices” drop down, select “iPhone”, and make sure “Use Core Data” is not checked. This will make most of the code Xcode generates for us be created as Swift files and not Objective-C files. The “Organization Identifier” will help create your “Bundle Identifier”, which is used to give your application a unique name for Apple and it’s devices.įor the “Language” drop down, ensure you have “Swift” and not “Objective-C” selected. Next make sure your “Organization Name” is filled out correctly, then in the “Organization Identifier” field, use a reverse domain name notation to use in the identifier. I’ve called my application “TaskMe”, but feel free to give it whatever name you like. ![]() Start by giving your app a name by filling out the “Product Name” field. On the next screen in the project set up wizard, it’s going to ask you to fill out a few options. Once you’ve selected the “Master-Detail Application” template, click “Next” to continue to the next part of the project set up. The reason you’re going to use this template is that you’re going to create the “Hello World” of more complete iOS applications, the task list app. This template will give us a great starting point with a Storyboard already set up with most of what you need, and a controller for both the Master (list) controller and the Detail controller. Once you’ve got Xcode installed and everything set up, launch Xcode and create a new project (Cmd+Shift+N), and in the template selector, make sure “iOS → Application” is selected, and choose the “Master-Detail Application” template.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |