Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个UIImageView,我想对其应用两个不同的动画,并同时运行它们。第一个动画将不透明度从 0 设置为 1,第二个动画将UIView 从一个点移动到另一个点。当 UIView 确实加载时,两个动画一起开始。
UIImageView
那可能吗?
试试这个
CGPoint movePoint = Your end animation point; yourView.opaque = 0.0f; [UIView animateWithDuration:2.0 animations:^{ yourView.center = movePoint; yourview.opaque = 1.0 } completion:^(BOOL finished){ //Animation completed }];