What does @“some string” mean in objective-c?

前端 未结 3 898
感情败类
感情败类 2021-01-17 18:13

I\'m just starting out with iphone development and ran across some example code that used @\"somestring\"

someLabel.txt = @\"string of text\";
3条回答
  •  礼貌的吻别
    2021-01-17 18:49

    It creates an NSString object with that string as opposed to the standard c char* that would be created without the '@'

提交回复
热议问题