//适配的宽
#define SYRealValueW(value) ((value)/375.0f*[UIScreen mainScreen].bounds.size.width)
//适配的高
#define SYRealValueH(value) ((value)/667.0f*[UIScreen mainScreen].bounds.size.height)
UIButton *but=[[UIButton alloc] initWithFrame:CGRectMake(SYRealValueW(10), SYRealValueH(100),SYRealValueW(100),SYRealValueH(100))];
but.backgroundColor=[UIColor redColor];
[self.view addSubview:but];