2

why we are using nonatomic in the @ property @property(nonatomic,retain)UIButton *button;

what is the meaning of nonatomic?

user174761
  • 1,729
  • 4
  • 15
  • 14

1 Answers1

4

The nonatomic modifier means that the property isn't locked when it is accessed or modified from multiple threads. You can find out more in this Stack Overflow answer.

Community
  • 1
  • 1
Alex Reynolds
  • 91,635
  • 50
  • 223
  • 320