Guest User

Untitled

a guest
Jul 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. @implementation CustomCell
  2. - (void)layoutSubviews {
  3. [super layoutSubviews];
  4. if (self.showingDeleteConfirmation) {
  5. if ([self.subviews count] < 4) return;
  6. UIView *delBtn = [self.subviews objectAtIndex:3];
  7. delBtn.frame = CGRectOffset(delBtn.frame, 0, 10);
  8. }
  9. }
  10. @end
  11.  
  12. NSInteger num = 10;
  13.  
  14. UIView.frame = CGRectMake(UIView.frame.origin.x,UIView.frame.origin.y - num,
  15. UIView.size.width,UIView.size.height);
Add Comment
Please, Sign In to add comment