Skip to content

Instantly share code, notes, and snippets.

View halilozel1903's full-sized avatar
🦅
The rest of the world was black and white 🖤 🤍

Halil Özel halilozel1903

🦅
The rest of the world was black and white 🖤 🤍
View GitHub Profile
@objc func changePic() { // resim ile ilgili işlemler için metod oluşturuldu.
if isFruit == true{ // eğer true ise
imageView.image = UIImage(named: "strawberry.jpg") // image değerini çilek yap
etFruit.text = "Strawberry" // text değerine çilek yaz
isFruit = false // isFruit değerini false yap
}else if isFruit == false{ // false ise
imageView.image = UIImage(named: "plum.jpg") // image değerini erik yap
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<android.support.v7.widget.GridLayout
android:id="@+id/gridLayout"
print("Hello, world!")
println("Hello, world!")
var myVariable = 10
myVariable = 20
let myConstant = 30
var myVariable = 10
myVariable = 20
val myConstant = 30
let explicitDouble: Double = 20
var explicitInt : Int = 10
val explicitDouble: Double = 20
var explicitInt : Int = 10
let apples = 3
let oranges = 5
let fruitSummary = "I have \(apples + oranges) " +
"pieces of fruit."
val apples = 3
val oranges = 5
val fruitSummary = "I have ${apples + oranges} " +
"pieces of fruit."