The error is not how you declare the property, but how you use it.
Autosynthesized properties create a backup storage with leading underscores by default .
So, in your code, when you have a property declared as:
@property (nonatomic, strong) UILabel *sectorLabel;
and you automatically configure - something like this is automatically generated by the compiler:
@synthesize sectorLabel = _sectorLabel;
Now you can access it through the property:
self.sectorLabel;
Or you can access the repository directly:
_sectorLabel;
source share