How do you write multiple texts?

Discussion in 'iOS Programming' started by beesbane, Oct 16, 2010.

  1. beesbane macrumors newbie

    Joined:
    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?
     
  2. Matthew Yohe macrumors 68020

    Joined:
    Oct 12, 2006
    #2
    You need to read the NSString Class Reference.
    http://developer.apple.com/library/...lasses/NSString_Class/Reference/NSString.html

    Namely, stringWithFormat: and stringWithString:
     

Share This Page