ios - consecutive statements on a line must be separated by '; ' swift -
hello i'm trying make app convert human years cat years , having trouble button tap show cat year.
@ibaction func findage(_ sender: anyobject) { var enteredage = age.text var myint: 13 = int(enteredage) var catyears = enteredage * 7 print(age.text) }
on var myint: 13 = int(enteredage)
2 errors 1 title of question , other says "expected type" running xcode 8 beta.
var myint : int = int(enteredage)
;
error unhelpful in swift debugging, el captain pointed out, info following :
in swift should object type.
Comments
Post a Comment