ios - UIButton not Blinking on Touch -


i have uibutton, created programmatically, inside uiview (no other levels hierarchy). button does respond touchupinside event properly, but, reason, text isn't exhibiting normal "blink" behavior when touched. i'd back, if knows cause this.

other notes: have userinteractionenabled = true , there no custom animations in code. relevant instantiation code (uicolor names custom category):

self.loginbutton = [[uibutton alloc] init]; self.loginbutton.backgroundcolor = [uicolor mpblackcolor]; [self.loginbutton settitle:@"log in" forstate:uicontrolstatenormal]; [self.loginbutton settitlecolor:[uicolor mpgreencolor] forstate:uicontrolstatenormal]; self.loginbutton.titlelabel.font = [uifont fontwithname:@"oswald-bold" size:24.0f]; 

the problem custom color normal state applies highlighted state, unless give separate color highlighted state. true of button state related values.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -