Authoritative description of ObjectiveC string literals? [closed]

て烟熏妆下的殇ゞ 提交于 2019-11-28 14:07:16

Given the choice between the docs and a random blog, I'd lean to believing the docs.

There isn't much written because there isn't much to say; @".." is a static string constant. It is created at compile time, written into the binary into a form that is mapped into memory in a read-only fashion, and is even more immutable than an NSString instance itself (constant NSStrings don't implement retain counting at all, for example; there is no allocation).

There is no real syntax associated with them save for the normal syntax the compiler uses with plain old C strings. I.e. you can do most of the various stringification gunk, etc...

I think you want the String Programming Guide.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!