私のビューの寸法が間違っています。私はランドスケープだけを実行していますが、ビューはポートレイトのサイズを報告しています。 "View Width = 768.000000 Height = 1024.000000"これを修正する方法はありますか?私はそれがビューに正常に見えるが、寸法は本当に私のアプリをいじっている必要があり私のself.viewの寸法が間違っています
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft|| interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
と
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
を試してみましたが、自動回転の周り果たしています。
ビューのサイズはどのようになっていますか? – yuf
self.view.frame.size.width。など。 – Jonathan
とその値をいつ読んでいますか? – yuf