Selamlar , bugün sizlere for döngüsünün tanımını ve kullanım şeklini anlattım . For if else ve diğer koşul terimleri karşımıza her projede gelecektir . Lütfen bu derslere önem verelim . Anlamadığınız yer kalmasın . Hatta genel tekrar bile yapabilirsiniz . Bilgileriniz pekişsin anlayın . İyi seyirler , iyi dersler .
Greetings, today I told you about the definition of the cycle and its usage. For if else and other conditional terms, the anticipation will come in every project. Please give importance to these lessons. There's no place you do not understand. You can even do it in general again. Understand your knowledge. Good looking, good lessons.
Projemizin Kodları
(Project Code)
import UIKit
**// For Döngüsü**
**// For Döngüsünün Array ile kullanımı**
var sehirler = ["Ankara","Eskşehir","İstanbul","İzmir","Bursa"]
//for sehir in sehirler{
//
// print(sehir)
//}
**
// For döngüsünğn Stringler için kullanımı**
**// Swift 4 ile geldi Swift 2 de vardı 3 de kaldırılmıştı**
var str = "Merhaba Dünya"
//for s in str{
// print(s)
//}
**//For döngüsünün Dictionary için kullanımı**
var arabalar = ["Bmw":"0", "Mercedes":"1", "Ford":"2"]
for (key,value) in arabalar{
print("\(key) : \(value)")
}
Video ya ingilizce çeviri yapana " 1 SBD " Ödül verilecektir
The person who makes video or english translation will be awarded "1 SBD".
Videoma ingilizce çeviri yapabilirsiniz
English subtitles can be added to the video.
Kodlara github adresimden'de ulaşabilirsiniz
You can access the code file from my "Githup" account
Posted on Utopian.io - Rewarding Open Source Contributors