Camera button click does not fire IBAction takePicture

If your camera button isn’t working as described on page 270, after you have entered the permissions correctly, and you have already debugged enough to know that takePicture isn’t getting executed, check here for solution: