原贴地址:iOS-OC-设置UITableViewCell之间的间距(推荐第四种)
这里只记录最好用的第四种
#import "TSDCell.h"
@implementation TSDCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setFrame:(CGRect)frame
{
frame.origin.y += 10;
frame.size.height -= 15;
[super setFrame:frame];
}