3 ms·
you can define ObjC method parameters with empty selector names if you want. This for example is perfectly legal ObjC, callable as [foo gimmeAString:10 :"hey "
by stefanfisk 5y ago
you can define ObjC method parameters with empty selector names if you want.
This for example is perfectly legal ObjC, callable as [foo gimmeAString:10 :"hey "].
- (NSString*)gimmeAString:(NSUInteger)count :(NSString*)piece {
return [@"" stringByPaddingToLength:count withString:piece startingAtIndex:0];
}