我正在更新我的应用程序,它将同时支持 ios 6 和 ios 7,现在的问题是我需要与 ios 6 类似的 ios 7 的 tableview 分组样式。我不知道该怎么做?
问问题
2923 次
实现这一点是通过子类化UITableViewCell
和覆盖它的-setFrame:
方法来完成的,如下所示:
- (void)setFrame:(CGRect)frame {
frame.origin.x += inset;
frame.size.width -= 2 * inset;
[super setFrame:frame];
}
参考这个链接