How to integrate my ios camera in cocos2d-x game in xcode using c++

I am using cocos2dx 2.2 version. In my game I have to take a snap of a person and then store it somewhere and then use that picture in the game. Is there a way to call a camera of iphone event and later the pic that is clicked is saved in the game somewhere.
Atleast can anyone give me a starting point where to it. I have searched a lot but unable to find something useful. Can anyone post a link.I will be really thankful

For using camera you need to use iOS objective-c code. After you get back the image from iOS, you can load it in a cocos2dx sprite to show in game.

https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html

@schngrg
thanks a lot

@schngrg i am actually not getting after reading your link.Could you post some more links