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.
Asked
Active
Viewed 955 times
2
-
Can you paste your code snippet here? That would help us! – Mohammad Abdurraafay Mar 20 '11 at 19:17
1 Answers
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