开发者

class NSCFData autoreleased with no pool in place

开发者 https://www.devze.com 2023-01-03 21:40 出处:网络
I have converted my NSString into string, and returning the same but the above error mentioned in the title is printing on console. Please suggest so that i could get away fro开发者_JAVA技巧m this iss

I have converted my NSString into string, and returning the same but the above error mentioned in the title is printing on console. Please suggest so that i could get away fro开发者_JAVA技巧m this issue.

my code is below:

string stringFromNSString(NSString *inNSString)

{

return [inNSString UTF8String];

}


This message is likely to indicate that you're running some function on secondary thread (e.g. using performSelectorInBackground:) without creating NSAutoreleasePool instance for that thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消