开发者

Automatically Taking a Screenshot?

开发者 https://www.devze.com 2023-01-23 07:09 出处:网络
I\'m developing using the cocos2d framework, Obj-C. I have a whole method for taking a screenshot called \"screenshot\". I\'d l开发者_运维技巧ike to know how I can take a screenshot. I\'ve been told t

I'm developing using the cocos2d framework, Obj-C. I have a whole method for taking a screenshot called "screenshot". I'd l开发者_运维技巧ike to know how I can take a screenshot. I've been told to just call [self screenshot]; but I get the warning 'GameOver' (class) may not respond to '-screenshot'. The screenshot method is in the AppDelegate.

Any help is appreciated!


Include the header for the application delegate and call.

[[[UIApplication sharedApplication] delegate] screenshot]
0

精彩评论

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

关注公众号