Convert NSMutableData to NSString

Discussion in 'iOS Programming' started by arme, Sep 23, 2008.

  1. arme macrumors member

    Joined:
    Sep 15, 2008
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    As long as you know what the encoding is you can easily turn the data object into a string with the obvious initWithData:encoding: method of NSString.

    Instead of continually posting very basic questions have you tried looking at the documentation first? It's a core skill of being a programmer. If you want to turn a NSMutableData object into a NSString object would it not make sense to look at the documentation for these two classes first?
     

Share This Page