我有一個視圖,我在自動佈局上設置了這個視圖。當我在4s iphone中更改按鈕框架/位置時,我無法更改它。如何在不更改自動佈局屬性的情況下更改ios 4s 備註中的按鈕位置?ios autolayout不會改變按鈕幀的位置
這裏是我的代碼:
CGRect screenBounds = [[UIScreen mainScreen] bounds];
if (screenBounds.size.height == 568)
{
// NSLog(@"Our App is running in iPhone5");
}
else
{
//NSLog(@"Our App is running in iPhone 3GS, 4, 4S");
[btn_next setFrame:CGRectMake(12,100,120,45) ];
[getTime setFrame:CGRectMake(151,361,89,162) ];
[picker_AMPM setFrame:CGRectMake(245,304,55,162)];
[img_blowline setFrame: CGRectMake(0,418,320,6)];
}