|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
// import quartz core #import // setting up size and position of the UIView int leftPos = 20; int topPos = 35; int width = 150; int height = 160; // creating view UIView *yourView = [[UIView alloc] initWithFrame:CGRectMake(leftBorder, topBorder, width, height)]; // setting up rounded corners yourView.layer.cornerRadius = 10; // setting color for your view yourView.backgroundColor = [UIColor greenColor]; // adding your new view on the [self.view addSubview:yourView]; |
Archive for 'Rounded Corners'
UIView with rounded corners in iphone.
Wednesday, May 18th, 2011 at
8:48 pm
Leave your comment
Simple UITableView Rounded Corners
Thursday, February 24th, 2011 at
11:05 am
- Using a Quartz Core command.
- Add the QuartzCore.framework framework to your project.
- In table view controller add the header import for Quartz Core.
#import <QuartzCore/QuartzCore.h> - In the viewDidLoad method.
[self.view.layer setCornerRadius:5.0];
Incoming search terms:
- android iphone uitableview rounded
- simpleUITableView iPad
- UITableView setCornerRadius



