objective c - Set default tint color for all UIButtons in an app -


my ipad app has number of uibuttons when pressed turn blue default. go through each 1 , set tintcolor using:

[buttonname settintcolor:[uicolor colorwithred:151/255.0f green:202/255.0f blue:86/255.0f alpha:1.0]]; 

but there anyway of changing colour default , buttons?

is there anyway of changing colour?

use uiappearance protocol:

 [[uibutton appearance] settintcolor:[uicolor colorwithred:151/255.0f green:202/255.0f blue:86/255.0f alpha:1.0]];  

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -