我正在使用iOS应用程序,并且遇到了一个很高的UIView
(2400px高)的问题。 UIView
包含一个非常长的表单,已被分解为5个部分。当用户完成表格的一部分时,我想滑动UIView
以显示下一部分。我以模态方式呈现UIView
。UIView动画时丢失背景
我遇到的问题是,当我向上滑动UIView
时,背景与第一部分中的对象一起向上滑动,下一部分留下清晰的背景。该代码我使用滑动UIView
是:
- (IBAction)slideUp {
// Slide the view up the screen to reveal the next section
CGRect frame = self.view.frame;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.75];
frame.origin.y = -480;
self.view.frame = frame;
[UIView commitAnimations];
}
对象的所有在那座UIView
滑了罚款,我只是失去了我的背景颜色。任何想法为什么?
谢谢!