I think I\'m looking at some outdated code:
@IBAction func stockLevelDidChange(sender: AnyObject) { if var currentCell = sender as? UIView {
In 1.2, toInt is gone. So,
toInt
if let newValue = textfield.text.toInt()?
Should be replaced with:
if let newValue:Int? = Int(textField.text!)