當我畫在ipad上的橫向模式的UIView,它給出錯誤的寬度和高度不對,我剛纔提到如下CGRectMake在橫向模式下無法正常工作?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation==UIInterfaceOrientationLandscapeRight);
}
rightView.view.frame = CGRectMake(598, 700, 60, 171);
但寬度是非常高的,高度很低...任何幫助嗎?
憑什麼我給幀分配? CGRectMake(x,y,hieght,width)..我是對嗎? – nameless
是的,如果真的涉及到的事實,你的接口方向以橫向旋轉,即應該做的伎倆:) – AliSoftware