Table view section can have headers, describing the sections to the users of your applications. This movie shows how to define headers for your table views, organizing them into different groups. This is done using code and handling the appropriate methods in your table view data source object in Xcode 7.
- So we have our table grouped into sections…but we actually don't have any headers for those sections.…Now you don't have to have headers,…but if you want to you can add a title above each section…in your table views.…So let's look at how that works.…I'll close the app…and then head over to my code…and I'm going to scroll down to the bottom,…right below number of sections in table view,…and I'm going to go down a few lines…and then I'm going to handle the data source method…table view, title for header and section.…
Notice that there's also title for footer and section.…So if you want to add a footer for each section…you can add that as well.…So we're just going to do header for now…and the first thing we'll do…is just check to see what section we're in.…So if section is equal to zero…then we'll return whatever title we want…for that particular section.…Now I'm just going to use a generic name…like data zero here,…and then I'm going to return below that data one.…But of course you can name these anything you'd like,…
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?
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.