ios - Button appearance clicked version -
i want buttons way, , instead of subclassing button, wrote this
[[uibutton appearancewhencontainedin:[eabaseviewcontroller class], nil]setbackgroundimage:[uiimage imagenamed:@"gradient_border"] forstate:uicontrolstatenormal]; [[uibutton appearancewhencontainedin:[eabaseviewcontroller class], nil]setbackgroundimage:[uiimage imagenamed:@"gradient_border_grey"] forstate:uicontrolstatehighlighted]; [[uibutton appearancewhencontainedin:[eabaseviewcontroller class], nil]setbackgroundimage:[uiimage imagenamed:@"gradient_border_grey"] forstate:uicontrolstateselected]; [[uibutton appearancewhencontainedin:[eabaseviewcontroller class], nil]setbackgroundimage:[uiimage imagenamed:@"gradient_border_grey"] forstate:uicontrolstateselected|uicontrolstatehighlighted]; [[uibutton appearancewhencontainedin:[eabaseviewcontroller class], nil]setbackgroundimage:[uiimage imagenamed:@"grey_border_grey"] forstate:uicontrolstatedisabled];
the problem is, when click button, instead of changing image gradient_border_grey changes alpha instead. cannot find how prepare it?
how prepare ?
i needed set button type custom prepare problem
ios uibutton
No comments:
Post a Comment