优雅的方式:
- (void)setFrame:(CGRect)frame
{
frame.origin.x += 12;
frame.size.width -= 24;
frame.size.height -= 5;
[super setFrame:frame];
}
效果如下:
优雅的方式:
- (void)setFrame:(CGRect)frame
{
frame.origin.x += 12;
frame.size.width -= 24;
frame.size.height -= 5;
[super setFrame:frame];
}
效果如下: