Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
@"hello"Objective-C和之间有什么区别"hello"?
@"hello"
"hello"
创建一个NSString类的实例(它是一个正确的 Objective-C 对象),而
NSString
将创建一个简单的 C 字符串(类型为const char[])。
const char[]
@"hello" 是 NSString(objective c class) 常量和 "hello" 字符串常量