现在我想移动按钮的位置取决于它是否是 iPhone 5 屏幕,但我无法弄清楚如何移动按钮,现在我有一个“if 语句”可以确定它是否是不是 iPhone 5,但我不知道如何在声明中移动我的按钮。看看我的代码。
。H
-(IBAction)randomButton;
//the button I want to move
.m
- (void)viewDidLoad
{
[super viewDidLoad];
if (IS_IPHONE_5) {
//I don't know how to move the button in here.
}
}