Skip to content

Instantly share code, notes, and snippets.

@MrBoog
Last active August 29, 2015 13:57

Revisions

  1. MrBoog renamed this gist Mar 16, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion myCell.m → MyDeleteCell.m
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    // override : layoutSubviews
    - (void)layoutSubviews

  2. MrBoog revised this gist Mar 13, 2014. 1 changed file with 1 addition and 5 deletions.
    6 changes: 1 addition & 5 deletions myCell.m
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,5 @@






    // override : layoutSubviews
    - (void)layoutSubviews

    {
  3. MrBoog created this gist Mar 13, 2014.
    31 changes: 31 additions & 0 deletions myCell.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@






    - (void)layoutSubviews

    {

    [super layoutSubviews];

    self.backgroundColor = [UIColor clearColor];

    for (UIView *subview in self.subviews) {

    self.backgroundView.frame = CGRectMake(0, 0, self.backgroundView.frame.size.width, self.backgroundView.frame.size.height);

    for (UIView *subview2 in subview.subviews) {

    if ([NSStringFromClass([subview2 class]) isEqualToString:@"UITableViewCellDeleteConfirmationView"]) { // move delete confirmation view

    [subview bringSubviewToFront:subview2];

    }

    }

    }

    }