Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有分组表视图。我想在具有清晰背景的表格单元格中添加 UISegmentedControl ,以便将其显示为 FOOTER 。我怎样才能做到这一点?我尝试使用 clearColor。但它不起作用。
使用清晰的UIView对象设置背景视图,如下所示:
UIView
UIView *clearView = [[UIView alloc] initWithFrame:CGRectZero]; [clearView setBackgroundColor:[UIColor clearColor]]; [self setBackgroundView:clearView]; [clearView release];
并确保将单元格选择样式设置为无。
编辑:添加了一些方括号