Take Picture Secretly without open camera in objective c

I want to do a task for a test series in which I want to take picture until user ends test.
So how can I take picture without open camera in objective c.

So… taking security and privacy into considerations, I would not recommend doing this. Your app would be removed/rejected from the app stores right away.


Okay but we will take permission from user to do it. I have to complete that task because it is done in android. Can you please send a code with explanation as I am fresher. Thank you for your reply.