Last active
August 29, 2015 14:15
-
-
Save maxgalbu/270335c848eaf505f39c to your computer and use it in GitHub Desktop.
fixed gist url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface UITableView (RemoveSeparatorMargin) | |
- (void) removeCellSeparatorMargin; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation UITableView (RemoveSeparatorMargin) | |
- (void) removeCellSeparatorMargin | |
{ | |
if ([self respondsToSelector:@selector(setSeparatorInset:)]) | |
[self setSeparatorInset:UIEdgeInsetsZero]; | |
if ([self respondsToSelector:@selector(setLayoutMargins:)]) | |
[self setLayoutMargins:UIEdgeInsetsZero]; | |
} | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "UITableView+RemoveSeparatorMargin", | |
"version": "1.0.0", | |
"summary": "Debounce selector for specific delay", | |
"homepage": "https://gist.github.com/maxgalbu/270335c848eaf505f39c", | |
"license": "MIT", | |
"authors": "maxgalbu", | |
"source": { | |
"git": "https://gist.github.com/maxgalbu/270335c848eaf505f39c.git", | |
"commit": "b5855652e84c79e033556c80ecd474e1cdb91633" | |
}, | |
"platforms": { | |
"ios": "6.0" | |
}, | |
"source_files": [ | |
"*.{h,m}" | |
], | |
"requires_arc": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment