deege / deegeu-swift-camera-basic

How to take pictures with the camera in iOS using Swift
http://www.deegeu.com/how-to-access-the-ios-camera-using-swift-2-0/
MIT License
2 stars 2 forks source link

Warning in ViewController.swift #1

Open appsird opened 8 years ago

appsird commented 8 years ago

Receive a warning message on line 49 of ViewController.swft stating:

Use #selector instead of explicitly constructing a 'Selector'

appsird commented 8 years ago

I changed the line to:

let selectorToCall = #selector(imageWasSavedSuccessfully)

And it compiles without warning and appears to run properly.