Dies ist Swift 2. Ich kann nicht finden, nichts zu diesem Thema. Ich erhalte den FehlerSwift-Compiler-Fehler: Kann 'lockForConfiguration' nicht mit einer Argumentliste vom Typ '((-)())'
Cannot invoke 'lockForConfiguration' with an argument list of type '(() ->())'
In der zweiten Zeile hier.
if let device = captureDevice {
device.lockForConfiguration() {
device.videoZoomFactor = 1.0 + CGFloat(ratioValue)
device.unlockForConfiguration()
}
print(ratioValue)
}
Ja! Das hat funktioniert, vielen Dank. –