This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func greet(name: String, day: String) -> String { | |
| return "Hello \(name), today is \(day)." | |
| } | |
| greet("Halil", "Saturday") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun greet(name: String, day: String): String { | |
| return "Hello $name, today is $day." | |
| } | |
| greet("Halil", "Saturday" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Shape { | |
| var numberOfSides = 0 | |
| func simpleDescription() -> String { | |
| return "A shape with \(numberOfSides) sides." | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Shape { | |
| var numberOfSides = 0 | |
| fun simpleDescription() = | |
| "A shape with $numberOfSides sides." | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var shape = Shape() | |
| shape.numberOfSides = 7 | |
| var shapeDescription = shape.simpleDescription() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var shape = Shape() | |
| shape.numberOfSides = 7 | |
| var shapeDescription = shape.simpleDescription() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { | |
| self.view.endEditing(true) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func textFieldShouldReturn(_ textField: UITextField) -> Bool { | |
| if textField.tag == 1{ | |
| print("ad text field'i kapandı.") | |
| }else if textField.tag == 2{ | |
| print("soyad text field'i kapandı.") | |
| }else{ | |
| print("email text field'i kapandı.") | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @IBOutlet weak var webImage: UIImageView! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if let url = URL(string: "https://i.pinimg.com/474x/a4/86/4d/a4864dcae5ab30a382e30e30f23a9440.jpg"){} | |