0

Basically, I'm trying to print out an NSArray's description.

I'm getting 'Expression Result Unused', even though I've tried everything I could find online!

Does anyone know?

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

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

How could I append WalletBalance's description into a string?

Dharmesh Kheni
  • 71,228
  • 33
  • 160
  • 165

1 Answers1

0

You need to use:

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

Courtesy of Append string with variable

Community
  • 1
  • 1
Andrew Alderson
  • 893
  • 12
  • 18