回転を変更した後のビューの新しい幅を知りたいのですUIViewControllers
が、この情報が
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
メソッドなので、frame または bounds プロパティにアクセスできません。
画層のプロパティpresentationLayer
とを使用してmodelLayer
みましたが、正しい解決策が見つかりませんでした。
誰かが解決策を知っているか、考えの食べ物を与えることができれば素晴らしいでしょう.