当我画在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