I am following this tutorial to make a camera app, but the tutorial is in Swift and I am using Xcode 7 beta and Swift2.
http://jamesonquave.com/blog/taking-control-of-the-iphone-camera-in-ios-8-with-swift-part-1/
I heard that Swift2 has a different error-handling method now, so I guess this part of code needs to be changed. But I am not sure how. Can anyone help me with this? Thanks!
var err : NSError? = nil
captureSession.addInput(AVCaptureDeviceInput(device: captureDevice, error: &err))
if err != nil {
println("error: \(err?.localizedDescription)")
}