user3435527
user3435527

Reputation: 45

Which way of declaring IBoutlet is better

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

Answers (1)

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

Related Questions