swift ? must be followed by a call, member lookup, or subscript

后端 未结 3 751
臣服心动
臣服心动 2021-01-07 23:41

I think I\'m looking at some outdated code:

@IBAction func stockLevelDidChange(sender: AnyObject) {
        if var currentCell = sender as? UIView {
                 


        
3条回答
  •  清歌不尽
    2021-01-08 00:32

    The problem is the if let newValue = textfield.text.toInt()? { .. If toInt() returns an Int? then just get rid of the ? there.

提交回复
热议问题