重新设置的UITableViewCellframe。
代码如下:
-
#import "MyViewCell.h"
-
-
@implementation MyViewCell
-
-
- (void)awakeFromNib {
-
[super awakeFromNib];
-
// Initialization code
-
}
-
-
- (void)setFrame:(CGRect)frame{
-
frame.origin.x += 10;
-
frame.origin.y += 10;
-
frame.size.height -= 10;
-
frame.size.width -= 20;
-
[super setFrame:frame];
-
}
-
-
@end
效果如下:
