iOS 函数需要多个参数

方法一:

- (NSMutableArray*)getBusStops:(NSString*)busStop :(NSSTimeInterval*)timeInterval;

方法二:

- (NSMutableArray*)getBusStops:(NSString*)busStop forTime:(NSSTimeInterval*)timeInterval;
小例子:

- (void)insertObject:(id)anObject atIndex:(NSUInteger)index;
NSString *obj = @"Hello, World!"; int index = 5; [array insertObject:obj atIndex:index];
转载自: http://stackoverflow.com/questions/722651/how-do-i-pass-multiple-parameters-in-objective-c


你可能感兴趣的:(iOS 函数需要多个参数)