#define DEVICE_IS_IPHONE5 ([[UIScreen mainScreen] bounds].size.height == 568) 接着我们可以在view初始化的时候改变frame: if (DEVICE_IS_IPHONE5) { [botton setFrame:CGRectMake(0, 450, 320, 440)]; }