0
私はUIViewを左と右に回転しています.CGAffineTransformを使用していますが、ビューフレームが変更されていないという問題があります。uiview rotation reset size problem
私のコードは次のようである:
CGAffineTransform tRotate45 = CGAffineTransformMakeRotation(-1.57);
self.view.transform = tRotate45;
imageScrollView.contentSize = CGSizeMake(480, 320);
self.view.frame =[[UIView alloc] ] CGRectMake(0, 0, 480, 320);
ビューが適切に変換されるが、フレームは同じままです。何が問題ですか?