设置控件的尺寸大小格式
- 方法1:CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height)
UILabel *label = [[UILabel alloc] init];
label.frame = CGRectMake(100, 100, 100, 100);
- 方法2:</br>(CGRect){{CGFloat x, CGFloat y},{CGFloat width, CGFloat height}}
UILabel *label = [[UILabel alloc] init];
label.frame = (CGRect){{100, 100},{100, 100}};