iphone - How To animate image using uibuttons -
i have 3 uibuttons named 1,2 , 3 , right @ bottom of buttons have arrow image indicates current button pressed. want when press of button arrow starts animating , slides @ bottom of button pressed.
- (void)setimage:(uiimage *)image forstate:(uicontrolstate)state;
and select uicontrolstate from
enum { uicontrolstatenormal = 0, uicontrolstatehighlighted = 1 << 0, // used when uicontrol ishighlighted set uicontrolstatedisabled = 1 << 1, uicontrolstateselected = 1 << 2, // flag usable app (see below) uicontrolstateapplication = 0x00ff0000, // additional flags available application use uicontrolstatereserved = 0xff000000 // flags reserved internal framework use }; typedef nsuinteger uicontrolstate;
Comments
Post a Comment