2014-10-29 71 views
0

基本上,我试图打印出NSArray's说明。表达式结果未使用(有数组说明)

我得到'Expression Result Unused',尽管我已经尝试了所有可以在网上找到的东西!

有谁知道吗?

NSArray *WalletBalance= [responseDict objectForKey:@"balance"]; 

NSString *wBalance = (@"This wallet currently has %@ dollars", [WalletBalance description]); 

如何将WalletBalance's描述添加到字符串中?

回答

0

您需要使用:

礼貌的 Append string with variable

NSString *someText = [NSString stringWithFormat:@"This wallet currently has %@ dollars", [WalletBalance description]];