I did some searching and the answer is still unclear to me. I am trying to create an instance of a UISearchDisplayController inside a TableViewController (TVC).
In the header of my TVC, I declared a searchDisplayController as a property:
@interface SDCSecondTableViewController : UITableViewController
@property (nonatomic, strong) NSArray *productList;
@property (nonatomic, strong) NSMutableArray *filteredProductList;
@property (nonatomic, strong) UISearchDisplayController *searchDisplayController;
@end
Doing so yields the error:
Property 'searchDisplayController' attempting to use instance variable '_searchDisplayController' declared in super class 'UIViewController'
Adding @synthesize searchDisplayController
in the implementation file got rid of the errors.
Can anyone please help me understand this error? I'm using Xcode 4.6.2, but I was under the impression that properties are automatically synthesized starting with Xcode 4.4.