我的项目有问题,我不知道该怎么做。
我的问题是使用UIView
“滚动”或手势。我需要创建一个带有动画的经典iOS底部功能栏的底部视图。但我的观点从底部停止,例如100px。
有任何教程或帮助吗?
图片在这里:
答案 0 :(得分:0)
请尝试以下操作。
self.yourView.frame = CGRectMake(0, self.view.frame.size.height, self.yourView.frame.size.width, self.yourView.frame.size.height);
[UIView animateWithDuration:1.0 animations:^{
self.yourView.frame = CGRectMake(0, self.view.frame.size.height - 100, self.yourView.frame.size.width, self.yourView.frame.size.height);
}];
如果您遇到任何困难,请告诉我。
请参阅此tutorial了解更多信息..