There has been same titles of this question but different situations. In this case this is very simple but I can't find a same problem online. So here's the code
class ViewController: UIViewController {
@IBOutlet weak var fldTotalUnits: UITextField!
var intTotalUnits:Int? = Int(fldTotalUnits)
The error here says "Cannot use instance member 'fldTotalUnits' within property initializer;..." I tried replacing var with let, I tried NSString, I tried .toInt() but nothign worked... so how do I this?