美文网首页
ViewController的成员变量不可以这样命名

ViewController的成员变量不可以这样命名

作者: 囧书 | 来源:发表于2016-08-22 17:48 被阅读40次
  • inputView
/// 当页面内的某些子视图调用[self becomeFirstResponder]时,会Crash
@property UIView *inputView;
  • tagView
/// 命名为tagView并不会造成Crash,但可能对此view进行某些操作时会没效果。
@property UIView *tagView;

相关文章

网友评论

      本文标题:ViewController的成员变量不可以这样命名

      本文链接:https://www.haomeiwen.com/subject/bdrgsttx.html