转载http://www.bubuko.com/infodetail-1130887.html
#import "UITableViewCellX.h"
@implementation UITableViewCellX
-(void)layoutSubviews
{
[super layoutSubviews];
for (UIView *subview in self.contentView.superview.subviews) {
if ([NSStringFromClass(subview.class) hasSuffix:@"SeparatorView"]) {
subview.hidden = NO;
CGRect frame = subview.frame;
frame.origin.x += self.separatorInset.left;
frame.size.width -= self.separatorInset.right;
subview.frame =frame;
}
}
}
@end
网友评论