Revision: 70026
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 4, 2015 00:48 by alenalexander77gmailcom
Initial Code
Rounded Corners -------------- self.UIElementName.layer.cornerRadius = 7.0; // vary this radius value to achieve suitable corner self.UIElementName.layer.borderWidth = 0.8f; //sets the border width of UIElement self.UIElementName.layer.borderColor = [UIColor redColor].CGColor; Square Corners -------------- self.UIElementName.layer.cornerRadius = 0.0; // sets the corner radius value to zero to get a square corner
Initial URL
Initial Description
Provide Square/Rounded corners for UIElements like UISegmentedControl, UIButton etc. Use 'cornerradius' property for setting the type of corner.
Initial Title
Square & Rounded corner for UIElements
Initial Tags
Initial Language
Objective C