Creating the take pic method


I’m trying to create the takePicture in to the program part of this and then when i press connect a stop sign with a “!” come up and says Could not insert new action connection: The line number to insert at (23) is not inside the container DetailViewController.

what did i do wrong or what does it mean