UIButton內(nèi)部默認(rèn)有個UIImageView、UILabel控件,可以分別用下面屬性訪問: 復(fù)制代碼代碼如下: @property(nonatomic,readonly,retain) UIImageView *imageView; @property(nonatomic,readonly,retain) UILabel *titleLabel; UIButton之所以能顯示文字,完全是因?yàn)樗鼉?nèi)部的titleLabel也,也就是說,UIButton的setTitle:forState:...
www.dbjr.com.cn/article/814...htm 2025-5-25