UIButton创建 不能使用 UIButton alloc,因为这样UIButton 的Style是无法设置的。
所以UIButton只有一种创建方法
[UIButton buttonWithType:UIButtonTypeRoundedRect]
UIButton创建 不能使用 UIButton alloc,因为这样UIButton 的Style是无法设置的。
所以UIButton只有一种创建方法
[UIButton buttonWithType:UIButtonTypeRoundedRect]
转载于:https://www.cnblogs.com/careerman/archive/2012/08/19/2646828.html