Skip to content

Commit

Permalink
Backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Oct 17, 2015
1 parent f2c9999 commit e7f2819
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions MGSwipeTableCell/MGSwipeButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ typedef BOOL(^MGSwipeButtonCallback)(MGSwipeTableCell * sender);

-(void) setPadding:(CGFloat) padding;
-(void) setEdgeInsets:(UIEdgeInsets)insets;
-(void) centerIconOverText;
-(void) centerIconOverTextWithSpacing: (CGFloat) spacing;

@end
5 changes: 5 additions & 0 deletions MGSwipeTableCell/MGSwipeButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ -(BOOL) callMGSwipeConvenienceCallback: (MGSwipeTableCell *) sender
return NO;
}

-(void) centerIconOverText
{
[self centerIconOverTextWithSpacing: 3.0];
}

-(void) centerIconOverTextWithSpacing: (CGFloat) spacing {
CGSize size = self.imageView.image.size;
self.titleEdgeInsets = UIEdgeInsetsMake(0.0,
Expand Down

0 comments on commit e7f2819

Please sign in to comment.