is StringByAppendingString deprecated in iOS 5.1?

Discussion in 'iOS Programming' started by AlbuquerqueApac, May 23, 2012.

  1. AlbuquerqueApac macrumors member

    Joined:
    Jan 13, 2012
    #1
    whenever I put in the following

    Code:
       NSString *CNwithDec = [NSString StringByAppendingString: CNconverted];
    
    Xcode doesn't recognize it.


    I imported the Foundation libraries for safe measure, but still.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
  3. cMacSW macrumors regular

    Joined:
    Mar 20, 2006
    #3
    stringByAppendingString is not a class method you need to call it on a instance of NSString
     

Share This Page