Defining a property in iOS class extension
问题 I would like to add a property to UITableView in a Class Extension: @interface UITableViewController () @property NSString *entityString; @end Then I import the extension and then I use entityString property in a subclass of UITableViewController: @implementation CustomerTableViewController - (void)viewDidLoad { self.entityString = @"Customer"; ... [super viewDidLoad]; } ... Apple documentation says: the compiler will automatically synthesize the relevant accessor methods (...) inside the