I am getting value from JSON it gives exception var is not CFString. below is the link from which i am getting data
Asked
Active
Viewed 475 times
2 Answers
2
I think this question should help you
Replace multiple characters in a string in Objective-C?
CFStringRef aCFString = (CFStringRef)aNSString;
works perfectly and transparently. Likewise:
NSString *aNSString = (NSString *)aCFString;
1
Check the class of you var using [var isKindOfClass:[NSString class]], if it returns true then assign it to your string variable.

Hitesh
- 1,230
- 1
- 10
- 12