How to take photo

how do you add the volume buttons on phone to take photo / video like in stock camera can someone help with that thanks

As per this tutorial

First, add UIImagePickerControllerDelegate to the class declaration. Add a variable var imagePicker: UIImagePickerController!, and call the camera

@IBAction func takePhoto(sender: UIButton) {
    imagePicker =  UIImagePickerController()
    imagePicker.delegate = self
    imagePicker.sourceType = .Camera
    presentViewController(imagePicker, animated: true, completion: nil)

Process the image with

    func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [NSObject : AnyObject]) {
        imagePicker.dismissViewControllerAnimated(true, completion: nil)
        yourImageView.image = info[UIImagePickerControllerOriginalImage] as? UIImage // you can do what you want with the image here - in this case, it is setting an image view to it