Reputation: 45
I was wondering which way is prefer for declaring an IBOutlet in a subview?
@property (weak, nonatomic) IBOutlet UITableView *mTableView;
or
IBOutlet UITableView *mTableView;
I believe the first one is better, but not too sure.
Upvotes: 0
Views: 48
Reputation: 2171
The first one is the better. Consider this : If you use the assistance editor and you Ctrl + Drag a view item straight into the code file, it will add it exactly like that
@property (weak, nonatomic) IBOutlet UITableView *mTableView;
Upvotes: 1