开发者

Error:Variable is not CFString

I am using sqlite database to sav开发者_Go百科e data from our xib. When I add first time then its added successfully but when i repeat that process then it shows run time exception and exit from program,and shows variable is not CFString.


Hard to say without looking at the code, but if this thread is any indication:

I believe the issue is that the array enumeration is doing an implicit cast to the enumerator variable type (NSString *, in this case), but the object(s) in the array aren't actually NSString *. When the 'rangeOfString' method is called on the object, the exception is raised.

Even if your code doesn't include that specific problem, it is likely to have some conversion issue related with CFString.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜