Fixed Deprecated methods

Some methods of the AVCaptureConnection class were deprecated for ios
6.1+. Now all the calls to those methods have been substituted with
non-deprecated ones.