Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)layoutSubviews
- {
- CGRect b = [self bounds];
- b.size.height -= 1; // leave room for the separator line
- b.size.width += 30; // allow extra width to slide for editing
- b.origin.x -= (self.editing) ? 0 : 30; // start 30px left unless editing
- [contentView setFrame:b];
- [super layoutSubviews];
- }
Add Comment
Please, Sign In to add comment