B beesbane macrumors newbie Original poster Oct 16, 2010 21 0 Oct 16, 2010 #1 I'm working with a text= I want it to write a string of things, for example: myAddress.text = aBook.address, @" Mackinaw City ", aBook.zipCode; the "," isn't the right way to connect them, nor is "+". How do I write it?
I'm working with a text= I want it to write a string of things, for example: myAddress.text = aBook.address, @" Mackinaw City ", aBook.zipCode; the "," isn't the right way to connect them, nor is "+". How do I write it?
M Matthew Yohe macrumors 68020 Oct 12, 2006 2,200 142 Oct 16, 2010 #2 beesbane said: I'm working with a text= I want it to write a string of things, for example: myAddress.text = aBook.address, @" Mackinaw City ", aBook.zipCode; the "," isn't the right way to connect them, nor is "+". How do I write it? Click to expand... You need to read the NSString Class Reference. http://developer.apple.com/library/...lasses/NSString_Class/Reference/NSString.html Namely, stringWithFormat: and stringWithString:
beesbane said: I'm working with a text= I want it to write a string of things, for example: myAddress.text = aBook.address, @" Mackinaw City ", aBook.zipCode; the "," isn't the right way to connect them, nor is "+". How do I write it? Click to expand... You need to read the NSString Class Reference. http://developer.apple.com/library/...lasses/NSString_Class/Reference/NSString.html Namely, stringWithFormat: and stringWithString: