ios - UI bar button wobble animation -


i figured out how create wobble animation buttons form link. there requirement of transform property not available in case of uibarbuttonitem. wish create wobbling action uibarbuttonitem. how can achieve this?

try this,

uibutton *button = [[uibutton alloc] init]; [button settransform:<#(cgaffinetransform)#>]; // set transform here  uibarbuttonitem *barbutton = [[[uibarbuttonitem alloc] initwithcustomview:button] autorelease]; self.navigationitem.leftbarbuttonitem = barbutton; 

Comments