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.
UIImageを画面の上部から上部に移動しようとしています。アニメーションのやり方は知っていますが、そうすると数百枚の画像になります。CGPointと呼ばれるものを使用できることを知っていますか?誰かがCGPointで画像を移動する方法の例を教えてもらえますか?
どうもありがとうございました。
このようなことをします:
[UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:3.0]; [myImageView setFrame:CGRectMake(0, 0, 50, 50]; [UIView commitAnimations];
これにより、imageViewは現在の位置から一番上に移動します。