NSString instance reports its class as NSCFString

后端 未结 2 610
一整个雨季
一整个雨季 2020-12-03 10:44

My objective here is really simple -- I\'m trying to set an NSString to some test data, then return the class, which should be NSString. Here\'s my

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 11:26

    NSString is really a container class for different types of string objects. Generally an NSString constructor does return an object that is actually of type NSCFString, which is a thin wrapper around the Core Foundation CFString struct.

提交回复
热议问题