Skip to content

Instantly share code, notes, and snippets.

@gavrix
Last active June 20, 2016 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gavrix/25fe465fd279ae7933e58297c579f872 to your computer and use it in GitHub Desktop.
Save gavrix/25fe465fd279ae7933e58297c579f872 to your computer and use it in GitHub Desktop.
@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