什么语法可以使这项工作?
NSString *curstring = [cur description];
UIImage *weatherimage = [UIImage imageNamed: @"@%.png", curstring];
[weather setImage:weatherimage];
谢谢
你正在寻找NSString 的stringWithFormat:
UIImage *weatherimage = [UIImage imageNamed:[NSString stringWithFormat:@"@%.png", curstring]];