Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
Hi all
I have created a custom UITableViewCell for a grouped tableview. As we know in grouped tableview the cell appears with round corners. I have to set background image of each cell also using the below given code

Code:
UIImageView* vwimg = [ [ UIImageView alloc] initWithFrame: cellFrame];
UIImage* img = [ UIImage imageNamed: @"round.png"];
vwimg.image = img;
cell.backgroundView = vwimg;
All this is being done in cellForRowAtIndexPath method. My problem is that the images do not occur as round.Do I need to use round images or does there exists any alternative for this?
Also do I need to set every element on this image with a "clear" color?
Thanks
Arnieterm
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.