İf Let Anlatımı ve kullanımı Swift

in #utopian-io7 years ago (edited)

Selamlar , Bugün if let kullanımından bahsettim . Videolarım iş dolayısıyla bugün biraz geç geldi bunun için kusura bakmayın . Şimdi tek tek yüklüyorum ve 3 ders yayınlayacağım . İyi seyirler , iyi dersler .

Greetings, I talked about using it today. My videos are a little late today because of the business, so do not look for it. Now I upload one by one and publish 3 lessons. Good looking, good lessons.



Projemizin Kodları
(Project Code)





import UIKit

**// if let kullanımı  -- Optional ifadelerden kurtulmak için kullanırız**

**// Json Parse işlemi yaparken**

**// if let yada guard let yapısını kullanacağız**

**//var sehir:String? // ? ile optional olduğu belirtilir**

//print(sehir ?? "Boş Değer")

**//print(sehir as Any) //Uyarıdan kurtarır sizi**

var sehir:String?

**//print(sehir!) // ! işareti ile unwrap yaparak optional kelimesinden de kurtarır**

**//En uygun yöntemlerden biri : if let**

//let il = sehir

//

//print(il!)

if let il = sehir {

    

    print("ilin ismi: \(il)")

} else{

    print("Değer okunamadı")

}





  • 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


Önceki derslerimiz / Previous lessons.**




Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

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

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

Coin Marketplace

STEEM 0.15
TRX 0.12
JST 0.026
BTC 56855.76
ETH 2540.09
USDT 1.00
SBD 2.24