cocos2d 我希望我的图像显示一次我的、图像、cocos2d

由网友(暖不了的心)分享简介:我有一个应用程序 cocos2d.我希望我的图像显示一次.不是每次我都进入 cocos2d 视图.你有什么想法吗?I have an application cocos2d. I want my image is displayed once. Not every time I go in cocos2d view....

我有一个应用程序 cocos2d.我希望我的图像显示一次.不是每次我都进入 cocos2d 视图.你有什么想法吗?

I have an application cocos2d. I want my image is displayed once. Not every time I go in cocos2d view.Do you have any idea?

推荐答案

虽然这个问题与 cocos2d 没有明确的关系.

this ques is not explicitly related to cocos2d though.

步骤:1.当你需要显示你的图片时,检查NSUserDefaults中是否存在bool值.2.如果值不存在(或返回值为FALSE),表示您可以显示您的图像.3. 显示图像后,在 NSUserDefaults 中为该特定键设置 TRUE 值.

Steps: 1. When you need to display ur image, check for a bool value existence in NSUserDefaults. 2. If value does not exists (or return value is FALSE), means you can display your image. 3. After displaying image, set TRUE value in NSUserDefaults for that specific key.

完成..!!

阅读全文

相关推荐

最新文章