diff --git a/MGSwipeTableCell/MGSwipeTableCell.m b/MGSwipeTableCell/MGSwipeTableCell.m index c85b07f..1d198f1 100644 --- a/MGSwipeTableCell/MGSwipeTableCell.m +++ b/MGSwipeTableCell/MGSwipeTableCell.m @@ -416,7 +416,7 @@ -(void) createSwipeViewIfNeeded swipeOverlay.backgroundColor = [self backgroundColorForSwipe]; swipeOverlay.layer.zPosition = 10; //force render on top of the contentView; swipeView = [[UIImageView alloc] initWithFrame:swipeOverlay.bounds]; - swipeView.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleHeight; + swipeView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; swipeView.contentMode = UIViewContentModeCenter; swipeView.clipsToBounds = YES; [swipeOverlay addSubview:swipeView]; @@ -573,7 +573,7 @@ -(void) setAccesoryViewsHidden: (BOOL) hidden else if (view != swipeOverlay && !hidden && [previusHiddenViews containsObject:view]) { view.hidden = NO; } - } + } if (!hidden) { [previusHiddenViews removeAllObjects];