在objective-c中,我可以声明一个带有类型的UI变量吗?:
UIButton *btn_Add,*btn_showMessage or UILabel *lb_Title
怎么样:UIButton *btnAdd,*btnShowMessage or *lbTitle
非常感谢
在objective-c中,我可以声明一个带有类型的UI变量吗?:
UIButton *btn_Add,*btn_showMessage or UILabel *lb_Title
怎么样:UIButton *btnAdd,*btnShowMessage or *lbTitle
非常感谢
我更喜欢addButton
, showMessageButton
,titleLabel
等
所以,是的,无论是 nonamelive 建议的,还是尽可能尝试摆脱“按钮”前缀/后缀。