西贝了爷  

2016年5月10日

摘要: 代码: // 控件大小,不能设置frame,只能用缩放比例 _switch.transform = CGAffineTransformMakeScale(0.8, 0.8); 阅读全文
posted @ 2016-05-10 15:01 西贝了爷 阅读(444) 评论(0) 推荐(0)
 
摘要: 一、创建,两种方法: 1. 常规的 initWithFrame UIButton *btn1 = [[UIButton alloc]initWithFrame:CGRectMake(10, 10, 80, 44)]; 2. UIButton 的一个类方法(也可以说是静态方法)buttonWithTy 阅读全文
posted @ 2016-05-10 11:39 西贝了爷 阅读(3776) 评论(0) 推荐(0)