iphone - Play & animate with UIButton? -


i doing rnd work, looking forward experts suggestion:

i have create custom button defined background image. user can throw button in direction smooth way, under total covered distance directly proportional pressure applied on uibutton throw it.

can 1 guide me can cover task ?

a start attach uipangesturerecognizer button (or view or whatever), use velocityinview:. uipangesturerecognizer.h:

// velocity of pan in pixels/second in coordinate system of specified view - (cgpoint)velocityinview:(uiview *)view; 

using velocity (possibly in conjunction translationinview:) can move button according speed , velocity of gesture.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -