开发者

iPhone NSUserDefaults

I have stored some values in开发者_如何学C NSUserDefaults and now I need to check, using NSFileManager, whether a certain value exists in the defaults. If the value exsists then I need to skip some parsing, and display information in a tableview. Please help me figure out how to do this check.


You can use something like

[[NSUserDefaults standardUserDefaults] objectForKey:...]

to retrieve the value.


You need to use NSData instead NSFile manager

Get values from nsuserdefaults to nsData and check whether any values available in nsData, if yes then perform some activity else ignore.

HERE is the link for the same discussion.

Hope this will help you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜