Join Todd Perkins for an in-depth discussion in this video Working with Auto Layout, part of Building a Note-Taking App for iOS 8.
- If you test the application as it is right now,…you may notice a little bit of a problem in the simulator.…When I create a "Note", and then click on it,…I'm then taken to the note, but a lot of it is cut off.…So if I compare it here, I'm only getting…a little more than half of the note on the screen.…So we need some kind of way to tell our storyboard…that the note needs to fill the screen.…Now the reason why this is happening,…is because Xcode is designed to handle…multiple screen sizes and aspect ratios.…
So in order to remedy this problem,…we can use a feature called, "Pins".…So I'm going to click away,…and make sure that everything is deselected,…and then I'm going to click on my note right here.…So I'm making sure to click on the text in my note,…and I can make sure that I'm selected the right thing,…by showing the Utilities area,…and then going to the Attributes Inspector,…and then I should see "Text View".…So I have my "Text View" selected,…and I want to apply some pins.…
Pins enable you to anchor…edges of objects to parts of the screen.…
Each of these courses helps you build a complete mobile app from scratch; this installment uses the iOS SDK and Xcode to get the job done. Author Todd Perkins shows you how to create an Xcode project, lay out apps visually, connect UI elements to code, and save data to persistent storage. Start here with iOS 8, and compare your results with the Android and Windows Phone courses to learn about the differences and similarities of these mobile platforms.
- Previewing the note-taking app's features
- Creating the Xcode project
- Using local data storage
- Creating a data class
- Saving data to a file or user defaults
- Understanding screens and storyboards
- Controlling transitions between views
- Connecting the controller to the data
- Creating, editing, and deleting notes