UIButton小节

Button创建可以不用[UIButton alloc]initwithFrame: 不用再开辟空间了,正确的写法如下:

 

UIButton rightNowButton = [UIButton buttonWithType:UIButtonTypeCustom];

rightNowButton.frame=CGRectMake();

posted @ 2015-02-05 17:09  i0ject  阅读(115)  评论(0编辑  收藏  举报