开发者

Objective c: Sliding?

开发者 https://www.devze.com 2023-01-31 02:47 出处:网络
I\'m not really sure what\'s this called, but I\'m working on a game that involves basically catching a falling object, or image, by holding your finger on it and then flicking it upwards. How would I

I'm not really sure what's this called, but I'm working on a game that involves basically catching a falling object, or image, by holding your finger on it and then flicking it upwards. How would I code an image view to respond to my finger to basically change it's position on the screen.

I'm pretty new to iO开发者_开发技巧S programming I don't even know where I would start


Take a look at Apple's MoveMe sample project. It does exactly what you're looking for.


Objective-C is the language, Cocoa Touch is the framework that deals with touches and image views and such. Changed tags to match.

0

精彩评论

暂无评论...
验证码 换一张
取 消