Skip to content

Instantly share code, notes, and snippets.

@gavrix

gavrix/NSStringHack.m

Last active Jun 20, 2016
Embed
What would you like to do?
@interface NSString (ss)
- (NSString *):(NSString *)str;
@end
@implementation NSString (ss)
- (NSString *):(NSString *)str {
return [NSString stringWithFormat:self, str];
}
@end
void testFunc() {
NSString *testStrig = [@"Hello %@": @"world"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment