Maybe you are watching a tutorial intended for Swift 1.2 (or older) and using Swift 2.An old code something like:someString.toInt()should be rewritten as:Int(someString)So, one line of your code:firstnumber = Screen.text!.toInt()!should be:firstnumber = Int(Screen.text!)!You will see how you can rewrite another line.But, if you continue the old outdated tutorial, you will face at many other problems. Swift 2 was such a big change, that many Swift 1.x code got outdated.
Topic:
Programming Languages
SubTopic:
Swift
Tags: