As of iPhone SDK 3.0, you can simply use the layer’s
cornerRadius property. E.g.:
view.layer.cornerRadius = 10.0;
Along the same lines, you can change the view’s border color and width:
view.layer.borderColor = [[UIColor grayColor] CGColor]; view.layer.borderWidth = 1;
- Gradients on UIView and UILabels On iPhone [duplicate]
- Convert HTML to NSAttributedString in iOS
- UIImagePickerController and extracting EXIF data from existing photos
- How to get the RGB values for a pixel on an image on the iphone
- How can I animate the movement of a view or image along a curved path?
- Changing my CALayer’s anchorPoint moves the view
- iPhone UIView Animation Best Practice
- NSTimer doesn’t stop
- How do I draw a shadow under a UIView?
- `[super viewDidLoad]` convention
- iCloud basics and code sample [closed]
- UIImagePickerController camera preview is portrait in landscape app
- Set line height in UITextView
- Landscape Mode ONLY for iPhone or iPad
- Finding Private API Call _terminateWithStatus
- iVar property, access via self?
- How do I auto size a UIScrollView to fit its content
- Limit the number of lines for UITextview
- Arguments in @selector
- How do you implement global iPhone Exception Handling?
- Can you make the settings in Settings.bundle default even if you don’t open the Settings App
- UITextField for Phone Number
- How to check programmatically if an App is installed?
- Draw part of a circle
- Changing the userAgent of NSURLConnection
- What is the best way to enter numeric values with decimal points?
- Quick Explanation of SUBQUERY in NSPredicate Expression
- Reading audio samples via AVAssetReader
- Setting the iPhone keyboard language
- how to take a screenshot of the iPhone programmatically?
- UIButton: set image for selected-highlighted state
- Removing a view controller from UIPageViewController
- NSArray Equivalent of Map
- When does an associated object get released?
- NSInternalInconsistencyException Could not load nib in bundle
- NSMutableString as retain/copy
- IPhone/IPad: How to get screen width programmatically?
- How to search MKMapView with UISearchBar?
- Show iPhone soft keyboard even though a hardware keyboard is connected
- UIActionSheet button’s color
- Enabling crash logs symbolication in Xcode 4.2
- How to create subscript characters that’s not in Unicode in iOS
- Drag UIView around Shape Comprised of CGMutablePaths
- How to get the center of the thumb image of UISlider
- Changing font size of tabbaritem
- Is it possible to NOT dismiss a UIAlertView
- How to subclass UINavigationBar for a UINavigationController programmatically?
- Localize Currency for iPhone
- UIViewController -viewDidLoad not being called