UIButton 创建

UIButton创建 不能使用 UIButton alloc,因为这样UIButton 的Style是无法设置的。

所以UIButton只有一种创建方法 

[UIButton buttonWithType:UIButtonTypeRoundedRect]

原文地址:https://www.cnblogs.com/careerman/p/2646828.html