13.07.2015 Views

Beginning Objective-C pdf - EBook Free Download

Beginning Objective-C pdf - EBook Free Download

Beginning Objective-C pdf - EBook Free Download

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

266CHAPTER 8: Data Management with Core DataFigure 8-11. Displaying and editing e-mail addressesA More Complex Cell ViewThe cell view for the MailingAddress type is a little more complicated because there are plentyof different properties to display and edit. This means that you need a significantly largercell with lots of text fields, each bound to a different key path below its table view cell’sobjectValue property.First things first: select the address value cell and drag its bottom resize handle downwards tomake some room. I found 97 points to be the sweet spot. You then need to move the text fieldupwards again, since it’s centered vertically and horizontally within the cell view—align it with thebaseline of the label field as before.This will serve to display the street property from the address, but since streets sometimescontain two lines, make it a little taller. Set the placeholder for the field to a two-line value to helpdetermine the correct size. To enter multiple lines, press the Option key while pressing Enter.For the other components, simply duplicate this one and resize it back to its default heightof 17 points. Create three duplicates, one below the other, for the city, region, and countryproperties. Use the Constraint controls to pin the vertical spacing between each field to be twopoints in height.www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!