Swift FOR döngüsü genel anlatım ve kodlama şekilleri(VIDEO TUTORIAL) LESSON-V

in utopian-io •  7 years ago  (edited)

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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

I thank you for spending time with me.

Hey @kerimcaglar I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x