In my implementation file, I write this:
@interface MyViewController () {
__weak IBOutlet UILabel *lbl_example;
}
Should I write it with / without the __weak
keyword?
How does it affect the memory / resource usage?
p.s. I understand that IBOutlet
is just a keyword to help Interface Builder to link up codes with components in Interface; it has no actual effects on coding.
p.s. It's not about @property
in header file. Different.