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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -