iOS 5: Make NSString Category include NSCFConstantString?

后端 未结 3 937
鱼传尺愫
鱼传尺愫 2020-12-17 18:49

I have an NSString category class (NSString+URLEncoding.h). I am running into and unknown selector crash, because the string I am calling the categ

3条回答
  •  长情又很酷
    2020-12-17 19:25

    __NSCFConstantString is a subclass of NSString, so any categories on NSString apply to __NSCFConstantString too.

    Either you're not linking in your category, or your category doesn't define a URLEncodedString method in its @implementation.

提交回复
热议问题