¡@

Home 

2014/10/15 ¤U¤È 10:06:41

iphone Programming Glossary: didselectcustomer

Passing Values Between Master and Detail in UISplitViewController Using Storyboards

http://stackoverflow.com/questions/10019422/passing-values-between-master-and-detail-in-uisplitviewcontroller-using-storyboa

defined the protocol in Customer.h file which is shown below @class Customer @protocol CustomerDelegate NSObject void didSelectCustomer Customer customer @end @interface Customer NSObject @property nonatomic copy NSString name @property nonatomic copy NSString.. copy NSString name @property nonatomic copy NSString occupation @end The MasterViewController left side invokes the didSelectCustomer method as shown below void tableView UITableView tableView didSelectRowAtIndexPath NSIndexPath indexPath Customer selectedCustomer.. NSIndexPath indexPath Customer selectedCustomer customers objectAtIndex indexPath row self.delegate didSelectCustomer selectedCustomer Now I need to tell the DetailViewController right side to do something. The DetailViewController complies..