UIButton创建不能使用UIButton alloc,因为这样UIButton的Style是无法设置的。
所以UIButton只有一种创建方法
[UIButton buttonWithType:UIButtonTypeRoundedRect]
UIButton创建不能使用UIButton alloc,因为这样UIButton的Style是无法设置的。
所以UIButton只有一种创建方法
[UIButton buttonWithType:UIButtonTypeRoundedRect]