2

I have grouped table view. I want to add UISegmentedControl in table cell with clear background so that it will be displayed as FOOTER . How can I do this? I tried using clearColor. But it's not working.

Cœur
  • 37,241
  • 25
  • 195
  • 267
iOSAppDev
  • 2,755
  • 4
  • 39
  • 77

1 Answers1

1

Set the background view with a clear UIView object like so:

UIView *clearView = [[UIView alloc] initWithFrame:CGRectZero];
[clearView setBackgroundColor:[UIColor clearColor]];
[self setBackgroundView:clearView];
[clearView release];

And make sure you set cell selection style to none.

Edit: added some square brackets

Tieme
  • 62,602
  • 20
  • 102
  • 156
honcheng
  • 2,014
  • 13
  • 14