Guest User

Untitled

a guest
May 21st, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. - (void)layoutSubviews
  2. {
  3. CGRect b = [self bounds];
  4. b.size.height -= 1; // leave room for the separator line
  5. b.size.width += 30; // allow extra width to slide for editing
  6. b.origin.x -= (self.editing) ? 0 : 30; // start 30px left unless editing
  7. [contentView setFrame:b];
  8. [super layoutSubviews];
  9. }
Add Comment
Please, Sign In to add comment