When should I use the “self” keyword?

后端 未结 6 1798
执念已碎
执念已碎 2020-12-06 02:53

When should I be using the self expression in my iphone development applications? say i have 2 fields: UITextField *text1; and NSString *str1

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 03:17

    if you "synthesize" the variable, you should "self." the variable. little rule of thumb

提交回复
热议问题