![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
objective-c
文章平均质量分 72
走路的猫头鹰
疯狂学习中
展开
-
UIkit之UIButton测试
- (void)viewDidLoad { [super viewDidLoad]; //创建一个UIButton按钮 UIButton *uiBtn = [UIButton buttonWithType:UIButtonTypeCustom]; uiBtn.frame = CGRectMake(0, 0, 100, 60); //设置按钮文字:正常状态 ...原创 2018-06-15 13:23:54 · 137 阅读 · 0 评论 -
UIKit框架View之frame属性、bounds属性、center属性
属性名称 属性解释 frame 设置(获取)控件的坐标位置,及尺寸 center 设置(获取)控件的坐标位置(控件中心点相对父控件左上角0,0坐标位置) bounds 设置(获取)控件的尺寸大小(虽然也接受4个值,但是前两个坐标值固定是0,也就是相对自身控件的所在坐标),IOS9之前是以自身控件左上角坐标为固定点然后向右下角放大(缩小)。IOS9...原创 2018-06-07 14:02:53 · 684 阅读 · 0 评论