[英]Objective-c coding convention?
在objective-c中,我可以聲明一個類型為?的UI變量:
UIButton *btn_Add,*btn_showMessage or UILabel *lb_Title
怎么樣: UIButton *btnAdd,*btnShowMessage or *lbTitle
非常感謝
我更喜歡addButton
, showMessageButton
, titleLabel
等。
所以是的,無論是nonamelive提出的,或嘗試擺脫“按鈕”前綴/后綴,如果可能的話。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.