0
我的应用程序开始时有一个小动画,两个门横向打开,顶部和底部显示屏幕。到目前为止,所有的优点,顶部移动罚款,但是因为我有一个滚动视图页面是比标准长175000准确。我想知道如何修改代码以将屏幕底部的png发送到屏幕上,因为此时屏幕会停留在标准屏幕所在的位置。有人可以建议吗?我用尽到目前为止手动添加高度self.view.size.height;
之后,但没有工作,即时通讯假设它的周围有没有什么地方我应该改变使用滚动视图移动屏幕外的动画
CGRect doortopFrame = doortop.frame;
doortopFrame.origin.y = -doortopFrame.size.height;
CGRect doorbottomFrame = doorbottom.frame;
doorbottomFrame.origin.y = self.view.bounds.size.height;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2.0];
[UIView setAnimationDelay:0.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
doortop.frame = doortopFrame;
doorbottom.frame = doorbottomFrame;
[UIView commitAnimations];