Skip to content

Commit

Permalink
Fix init-swizzling.
Browse files Browse the repository at this point in the history
  • Loading branch information
inamiy committed Nov 28, 2013
1 parent 01fe871 commit cdd73c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/UITableView+iOS7TableTopSeparator.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,18 @@ - (void)_setIOS7TopSeparatorView:(UIView*)topSeparatorView

+ (void)installIOS7TableTopSeparator
{
[UITableView jr_swizzleMethod:@selector(initWithStyle:reuseIdentifier:)
withMethod:@selector(iOS7TableTopSeparator_initWithStyle:reuseIdentifier:)
[UITableView jr_swizzleMethod:@selector(initWithFrame:style:)
withMethod:@selector(iOS7TableTopSeparator_initWithFrame:style:)
error:NULL];

[UITableView jr_swizzleMethod:@selector(initWithCoder:)
withMethod:@selector(iOS7TableTopSeparator_initWithCoder:)
error:NULL];
}

- (id)iOS7TableTopSeparator_initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
- (id)iOS7TableTopSeparator_initWithFrame:(CGRect)frame style:(UITableViewStyle)style
{
typeof(self) self2 = [self iOS7TableTopSeparator_initWithStyle:style reuseIdentifier:reuseIdentifier];
typeof(self) self2 = [self iOS7TableTopSeparator_initWithFrame:frame style:style];
self2.showsIOS7TopSeparator = YES;
return self2;
}
Expand Down

0 comments on commit cdd73c5

Please sign in to comment.