Skip to content

Instantly share code, notes, and snippets.

@hasanalisiseci
Created February 24, 2020 08:54
Show Gist options
  • Save hasanalisiseci/5a77d3c6d75b8d83364f0f7706c12e31 to your computer and use it in GitHub Desktop.
Save hasanalisiseci/5a77d3c6d75b8d83364f0f7706c12e31 to your computer and use it in GitHub Desktop.
@objc func changePic() {
if isOldCeza == true {
imageView.image = UIImage(named: "cezaeski")
myLabel.text = "Ceza 2007"
isOldCeza = false
} else {
imageView.image = UIImage(named: "cezayeni")
myLabel.text = "Ceza 2020"
isOldCeza = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment