Home:ALL Converter>What made the difference

What made the difference

Ask Time:2015-04-21T21:21:17         Author:asim.temur

Json Formatter

What made the difference

@property (strong, nonatomic) and @property (nonatomic, strong) in ios.

i will define iboutlet for example uilabel like this

@property (strong, nonatomic) IBOutlet UILabel *label1;

and i see many time in this site

@property (nonatomic, strong) NSString* str;

What is the difference between the two property.

Author:asim.temur,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/29773426/what-made-the-difference
Tiago Almeida :

There are no differences in the logic. They represent the same thing but with different order.\n\nUsually in IBOutlets you have @property (weak, nonatomic) because it is auto generated when you ctrl+drag from interface builder.\n\nHowever, most people prefer the second form because the \"nonatomic\" is used in most of the cases in ios and therefore it is easily ignored. ",
2015-04-21T13:23:08
yy