What's the difference between the atomic and nonatomic attributes?
Asked 07 September, 2021
Viewed 1.4K times
  • 58
Votes

What do atomic and nonatomic mean in property declarations?

@property(nonatomic, retain) UITextField *userName;
@property(atomic, retain) UITextField *userName;
@property(retain) UITextField *userName;

What is the operational difference between these three?

27 Answer