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
Post a Comment