Yes, you can achieve this with a couple of lines of code:
Just just a TableView in your Xib file. No need to have a UITableView style to group.
1) Import the QuartzCore environment into your .h file.
#import <QuartzCore/QuartzCore.h>
2) Now set the TableView layers in the .m file.
[CategoryTblView.layer setBorderWidth: 1.0]; [CategoryTblView.layer setCornerRadius:8.0f]; [CategoryTblView.layer setMasksToBounds:YES]; [CategoryTblView.layer setBorderColor:[[UIColor blackColor] CGColor]];
And this is the result:

Ajay Sharma Mar 19 '12 at 17:57 2012-03-19 17:57
source share