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.
如何在 Xcode 中使对象从位置 a (x, y) 移动到位置 b (x, y),最好使用 Cocoa Touch。
问候,尼基塔。
使用核心动画块:
[UIView animateWithDuration:5.0 animations:^{ myView.frame = newFrame; } completion:^(BOOL completed){ // done! }];