Table views can group different areas into sections. These sections can have titles and names so that they can be logically organized like the Settings app in iOS 9. This movie shows the basics of grouping sections together, how to define how many sections your table views should have, and how to populate the table view cells when you have multiple sections.
- [Voiceover] Just like what we looked at…with the Settings app, Table Views can be…broken up into sections.…Let's go to ViewController.swift…and look at how that works.…Right now, we have this data object.…What if we were to copy and paste that…and to create a second group of items?…Instead of having six, let's say I have three…and I'll change the name of this constant…to data 1 and then I'll change the items to…Item a, Item b and Item c.…
We want to have two separate groups right here.…In a table, these groups are called Sections.…We need to go down to the bottom…and we need to handle a new method…called numberofSectionsInTableView.…Remember that this doesn't start with…Table View, like TableViewNumberOfRowsInSection.…This is just numberOfSectionsInTableView.…We'll handle this one and we need to…return an integer.…Well, we know that we have two sections.…We have two arrays that we want to…put inside of the Table View.…
We want to return two right here.…Then in numberOf RowsInSection,…we want to return the number of rows…
Interested in developing for Apple Watch or Apple TV? Get a sneak peek in Chapter 9. The course wraps up with a look at the submission process for the App Store.
- Installing Xcode and the iOS SDK
- Creating a simple iOS app
- Creating a basic interaction with a button
- Choosing an object as a first responder
- Creating a user interface with Interface Builder and Auto Layout
- Working with sliders and progress bars
- Creating views to show images and web pages
- Developing responsive layouts with size classes
- Understanding the iOS architecture
- Loading data in table views
- Transitioning between views
- Developing for the iPad, Apple Watch, and Apple TV
- Submitting apps to the App Store
Skill Level Beginner
Building a Note-Taking App for iOS 9 with Swiftwith Todd Perkins1h 20m Intermediate
1. Prepare to Develop an iOS App
2. Core Skills
3. Basic iOS UI
4. More UI Objects
5. Size Classes
6. iOS Application Architecture
7. Table Views
8. Multiple-View Applications
9. iPad, Watch, and Apple TV Development
10. Finish and Submit to the App Store
Next steps2m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.