convert NSTaggedPointerString to NSString

后端 未结 5 2176
夕颜
夕颜 2020-12-18 18:36

I had called an interface of Baidu to check id Number, however the value of Sex returned with sex = M, without \"\" around the M in JSON, when I us

5条回答
  •  感情败类
    2020-12-18 19:21

    I have encountered places where NSTaggedPointerString cannot be used as a NSString, such as when creating an NSDictionary. In those cases use stringWithString::

    NSString* <# myNSString #> = [NSString stringWithString:<# myNSTaggegedString #>];
    

提交回复
热议问题