Swift Change: Changing NSString to String!

Discussion in 'iOS Programming' started by loon3y, Apr 15, 2015.

  1. loon3y macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #1
    i get this error


    [​IMG]


    technically it should be ok right?
     
  2. grandM macrumors 6502a

    grandM

    Joined:
    Oct 14, 2013
    #2
    NSString was replaced by String. So yes you should use String in swift. You probably will have to replace the .integerValue by .toInt()
     
  3. Boris-VTR macrumors regular

    Joined:
    Apr 18, 2013
    #3
    Yes, with swift String is preferred option. String is "substitution" for NSString, but they are not really the same :)
     

Share This Page