Controlling iPhone's Camera?

Hi guys,
I really liked the idea of triggering the iPhone's camera using its earbuds to take the picture automatically (using a signal from Arduino to the earbuds). I'm trying to do the same thing for my project, but I really cant get my phone triggered. Can you explain to me how exactly to do it?
Do I have to cut the wires and connect them differently? or Do I have to do something in the circuit switch?
Please I need your help because it will be my project for school.
Thank you.

I don't know about how the earbuds are used to trigger the camera but you can get inexpensive buttons for the iPhone.

I imagine the button should be easy to hack.

Another solution could be to use a BT module and wirelessly trigger the camera (in the same way that selfie sticks do).

Do not cross-post. Other thread removed.