UIButton创建 不能使用 UIButton alloc,因为这样UIButton 的Style是无法设置的。
所以UIButton只有一种创建方法
[UIButton buttonWithType:UIButtonTypeRoundedRect]
本文阐述了在iOS开发中创建UIButton的正确方法,并详细解释了如何通过[UIButton buttonWithTypeToSelector:]来设置按钮的样式。
UIButton创建 不能使用 UIButton alloc,因为这样UIButton 的Style是无法设置的。
所以UIButton只有一种创建方法
[UIButton buttonWithType:UIButtonTypeRoundedRect]
2219

被折叠的 条评论
为什么被折叠?