views:

116

answers:

1

how to set UITableViewCell background tranparent?

I am trying

cell.backgroundColor = [UIColor clearColor];

But that is giving black color.

Thanks & Regards.

+2  A: 

Please view this post: How to create a UITableViewCell with a transparent background

mjdth
When I am using that code, it give me an error: expected expression before 'UIView'
Ruchir Shah
Perhaps you can repost a few lines around the code where you see the error. Your response does not help us help you.
Alex Reynolds
Make sure that you have `#import <UIKit/UIKit.h>` in your .h file.
mjdth
I have also written #import statement.
Ruchir Shah