私のプロジェクトでは、単純なアニメーションがあり、ビューを左から右に移動するだけです。これは iOS 6 では問題なく動作しますが、iOS 7 で実行すると何もしません。誰かが理由を知っていますか?アニメーションが非常に単純な場合、iOS 7 でこれを修正するにはどうすればよいですか? 私のコードは次のとおりです。
- (void) showAnimation
{
if (IS_IPAD())
{
[UIView animateWithDuration:50.0f
delay:1
options:UIViewAnimationOptionRepeat
animations:^{
ViewBOLIVIA.frame = CGRectMake(1024,0, ViewBOLIVIA.frame.size.width, ViewBOLIVIA.frame.size.height);
} completion:nil];
}
else
{
if (IS_IPHONE_5)
{
[UIView animateWithDuration:50.0f
delay:1
options:UIViewAnimationOptionRepeat
animations:^{
ViewBOLIVIA.frame = CGRectMake(568,0, ViewBOLIVIA.frame.size.width, ViewBOLIVIA.frame.size.height);
} completion:nil];
}
else
{
[UIView animateWithDuration:50.0f
delay:1
options:UIViewAnimationOptionRepeat
animations:^{
ViewBOLIVIA.frame = CGRectMake(480,0, ViewBOLIVIA.frame.size.width, ViewBOLIVIA.frame.size.height);
} completion:nil];
}
}
}
私は更新を行い、Xcode 5とiOS 7を使用しているので、助けてください。これを修正する方法を知っていますか?