Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to Cocos2D and I can't find the way to open the camera from the library. I want to open the camera in the my game, can any one help me with with this?

Thank you in advance.

share|improve this question
Can you clarify what you mean by the phrase "open the camera?" – Josh Petrie Apr 27 '11 at 15:18
i want to get the camera input as the sprite in my application so here i want to take photo from the camera thank you for answering – NIKHIL Apr 28 '11 at 9:24

I guess that CCRenderTexture is what you are looking for.

Take a look at this example

share|improve this answer
is this link work for cocoas2d 0.99.5 version because it shown me many of the error thank you for your reply – NIKHIL Apr 29 '11 at 11:31
Maybe this example just works with 1.0, but it should be easy to modify it to work with prior versions – Sergi May 2 '11 at 13:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.