Head First iPhone & iPad Development by Tracey Pilone & Dan Pilone & Paul Pilone & Brett McLaughlin

Head First iPhone & iPad Development by Tracey Pilone & Dan Pilone & Paul Pilone & Brett McLaughlin

Author:Tracey Pilone & Dan Pilone & Paul Pilone & Brett McLaughlin
Language: eng
Format: mobi, pdf
Published: 2013-12-10T17:02:06+00:00


sharpen solution

Which class should you select for this new view?

MasterViewController

DetailViewController

UITableViewController

Why?

You’re selecting a detail view here that is both a detail view and a table view.

The class level needs to be a detail view first, table view second.

Design the rest of the view dynamical y

Now we need to layout the new table view. Unlike the last table view we used,

where we didn’t know how many rows we needed, in this one we know exactly

what we want to show and are using the table view to help us with layout. In

After selecting the table

this case, we want to use a static table instead of a dynamic one.

view, change the content to be

“static cells.”

Dynamic is the default for table views, and it’s used when the table view layout changes based on the data. Since we have the

same information coming in and want the

view to be laid out consistently, it’s static.

Geek Bits

We’re going to change the separator type here too. That’s the biggie

It’s in the inspector

for faking the table view to look like a detail view. Normally there is a

under Separator

single line separating the cells, but once you remove that, the user won’t be

Insets.

able to see any difference.

150 Chapter

4



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.