When using the address book records from the array,
objc_unretainedPointer is called to the object pointer without transferring any ownership of memory
_bridge_transfer is used to typecast pointers to comparable Objective-C objects
Datasource is delegated control of data instead of the UI, responsible for managing the memory of the model objects
UINavigationController manage the presentation of hierarchical data
UIViewController provides the custom logic needed to bridge the app's data to the views, also known as the controller in the MVC concept
UITabBarController organizes app into one or more distinct modes of operation
A master-detail application defaults the first view controller to a table view controller. It also reinforces the concept that table views lend themselves to navigation controllers and vice versa
Apple Cell Styles
- UITableViewCellStyleDefault - black, left-aligned, text label
- UITableViewCellStyleValue1 - black, left-aligned, text label with smaller blue, right-aligned text label
- UITableViewCellStyleValue2 - blue, right-aligned text label with smaller black, left-aligned text label
- UITableViewCellStyleSubtitle - left-aligned label with smaller grey, left-aligned text label below
Apple Table view Cell Accessory Types
- UITableViewCellAccessoryDisclosureIndicator - chevron
- UITableViewCellAccessoryDisclosureButton - blue button with chevron
- UITableViewCellAccessoryCheckmark - check mark
Apple Table View Cell Editing Styles
- UITableViewCellEditingStyleNone - no control
- UITableViewCellEditingStyleDelete - red circle with minus sign
- UITableViewCellEditingStyleInsert - green circle with plus sign
Corrections
Instead of addressBook = ABAddressBookCreate();
ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(nil, nil);
Instead of NSData *d = (NSData)ABPersonCopyImageData([myContacts objectAtIndex:indexPath.row]);
NSData *d = (__bridge NSData*)ABPersonCopyImageData((__bridge ABRecordRef)([myContacts objectAtIndex:indexPath.row]));
- Add [av show]; after you create the alert
- Add break; after each switch case
- Add int prevSearchTextLen; to Dial4MasterViewController.h
- Add int prevSearchTextLen; to Dial4MasterViewController.h
No comments:
Post a Comment