// 例子: 一个方法可以包含多个参数 - (void) setNameStr: (NSString *)aName secondName: (NSString *) bName thirdName: (NSString *) cName; / 例子: 一个方法可以包含多个参数 - (void) setNameStr: (NSString *)aName secondName: (NSString *) bName thirdName: (NSString *) cName { NSString *a = aName; NSString *b = bName; NSString *c = cName; NSLog(@"%@%@%@", a, b, c); } // 测试 [self setNameStr: @"蒋" secondName: @"智" thirdName: @"昊"];