我想做这样的事情:
。H
LocalRoom* zone1;
LocalRoom* zone2;
LocalRoom* zone3;
LocalRoom* zone4;
etc....
.m
NSString *number = 1;
NSString *variable = [NSString stringWithFormat: @"zone%@", number]
[[variable variableValue] broadcastChatMessage:redStringPrefix fromUser:@"server"];
模仿:
[zone1 broadcastChatMessage:redStringPrefix fromUser:@"server"];
我该怎么做呢?可能吗?