How can I addSubview to UIButton in Interface Builder

后端 未结 4 1730
轻奢々
轻奢々 2021-02-18 22:57

Like I said, I add a UIButton in Interface Builder, I want add a UILabel、UIImageView as the button\'s subviews, but I can\'t add any object on it in IB. IS anybody know how to d

4条回答
  •  感情败类
    2021-02-18 23:49

    Make your UIButton custom button, then add the UILabel on it,then the you will benefit from the UIButton properties and actions,hope this help you

提交回复
热议问题