我的观点有错误的尺寸.我正在运行景观,但视图报告纵向尺寸“查看宽度= 768.000000高度= 1024.000000”任何想法如何解决?我玩过我试过的自转器
- (BOOL)shouldAutorotatetoInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft|| interfaceOrientation == UIInterfaceOrientationLandscapeRight); }
和
- (BOOL)shouldAutorotatetoInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; }
它在视图上看起来很好,但尺寸确实与我的应用程序混乱.