Created
December 16, 2013 19:23
-
-
Save frankus/7992755 to your computer and use it in GitHub Desktop.
Category on UIBarButtonItem for flexible space (add an `autorelease` call for non-ARC code).
This file contains 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 UIBarButtonItem (FlexibleSpace) | |
+ (instancetype)barButtonItemFlexibleSpace; | |
@end | |
@implementation UIBarButtonItem (FlexibleSpace) | |
+ (instancetype)barButtonItemFlexibleSpace { | |
return [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment