How do I create a basic UIButton programmatically?

后端 未结 30 863
清歌不尽
清歌不尽 2020-11-22 14:41

How can I create a basic UIButton programmatically? For example in my view controller, when executing the viewDidLoad method, three UIButton<

30条回答
  •  伪装坚强ぢ
    2020-11-22 15:19

    You can just put the creator instance within a loop and dynamically add names from an array if you so wish.

提交回复
热议问题