Reputation:
i have over 20 buttons in my XCode project, and i want to add border to every of them. is it possible to like select all the UIButtons in the storyboard and then perform codes on them?
// For example
buttons.borderColor = [[UIColor darkGrayColor] CGColor];
buttons.cornerRadius = 8;
buttons.borderWidth = 1;
Upvotes: 0
Views: 32
Reputation:
You could use the UIAppearance protocol. https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAppearance_Protocol/index.html
Upvotes: 1