about 5 years ago
To give border color to UIButton :-
1. Take UIButton as property .
2. Give corner radius and corner width to UIButton.
3. Now give border color to UIButton.
For Swift use :-
demoButton.backgroundColor = UIColor.clearColor() demoButton.layer.cornerRadius = 5 demoButton.layer.borderWidth = 1 demoButton.layer.borderColor = UIColor(red: 74/255, green: 218/255, blue: 163/225, alpha: 1).CGColor
For Objc use :-
self.demoButton.layer.borderWidth = 1; self.demoButton.layer.borderColor = [UIColor whiteColor].CGColor; self.demoButton.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.3]; self.demoButton.layer.cornerRadius = 3.0;
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)