2

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

what is the meaning of nonatomic?

user174761
  • 1,819
  • 4
  • 16
  • 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
  • 95,983
  • 54
  • 240
  • 345