所以我的网点如下,是的,它们连接在我的 .xib 文件中:
IBOutlet UIButton *savedReadings;
IBOutlet UIButton *beginReading;
这是我的 .m 文件:
if ([[ UIScreen mainScreen] bounds].size.height == 568){
_background.hidden = NO;
_background2.hidden = YES;
_PalmFrame.hidden = YES;
}else{
[beginReading setFrame:CGRectMake(beginReading.frame.origin.x, beginReading.frame.origin.y-1500, beginReading.frame.size.width, beginReading.frame.size.height)];
[savedReadings setFrame:CGRectMake(savedReadings.frame.origin.x, savedReadings.frame.origin.y-1500, savedReadings.frame.size.width, savedReadings.frame.size.height)];
_background2.hidden = NO;
_background.hidden = YES;
_PalmFrame.hidden = NO;
}
出于某种原因,每次我尝试调整按钮的 y 轴位置时,它都不会让步。有任何想法吗?