[英]Expression Result Unused (with array description)
基本上,我試圖打印出NSArray's
描述。
即使我已經嘗試了所有可以在網上找到的內容,但我卻獲得了'Expression Result Unused'
!
有人知道嗎?
NSArray *WalletBalance= [responseDict objectForKey:@"balance"];
NSString *wBalance = (@"This wallet currently has %@ dollars", [WalletBalance description]);
如何將WalletBalance's
描述附加到字符串中?
您需要使用:
NSString *someText = [NSString stringWithFormat:@"This wallet currently has %@ dollars", [WalletBalance description]];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.