アプリケーションにページングがあります。画像のある各ページ。オリエンテーション中に、横向きと縦向きに応じてフレームを変更しています。しかし、画像は跳ねています。バウンドせずスムーズにセットしたい。
私に何ができるか教えてください。
フレームを変えています
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
ここにいくつかのコードがあります。
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || toInterfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
[self performSelector:@selector(setLandscapeOrientationFrame) withObject:nil afterDelay:(duration/2)];
}
else
{
[self performSelector:@selector(setPortraitOrientationFrame) withObject:nil afterDelay:(duration/2)];
}
}
そして「setPortraitOrientationFrame
」と「setLandscapeOrientationFrame
」ではフレームを変えています。