Selamlar , bugünkü dersimizde " Swift Array ve dictionary " Konularının genel kavramlarını ve kodlama şekillerini anlatmaya çalıştım . Bir kaç defa yeniden başlattığım videoyu sonunda tamamladım . Yavaş yavaş programlamaya geçerken bu kavramları tam olarak öğrenmekte yarar var arkadaşlar . Farkındaysanız videolarımız uzun olmakta ve anlamanız için elimden geleni yapmaktayım . Yorumlarınızı ve oylarınızı bekliyorum . İyi seyirler , iyi dersler .
Greetings, I tried to describe the general concepts and coding styles of the "Swift Array and dictionary" topics in our current lesson. I finished the video that I had restarted a few times at the end. It is useful to learn these concepts precisely as you go slowly to programming. If you are aware, our videos will be long and I will make a complete comeback for you. I expect your comments and votes. Good looking, good lessons.,
Projemizin Kodları
(Project Code)
import UIKit
**//Diziler ve Sözlük Yapısı (Array ve Dictionary)**
var str = [String]() **//Boş ve elemanları string olan bir dizi**
var tamsayi = [Int]() **//Boş ve elemanları integer olan bir dizi**
var OndalikliSayi = [Double]()
//**append -> diziye eleman ekler**
str.append("Swift")
str.append("3")
str.remove(at: 1)
str.removeAll()
str
**//Swift 4 ile geldi**
var kelime = ["kelime1","kelime3","kelime2"]
kelime.swapAt(1,2)
kelime
**//Tek taraflı sınır değeri koyma Swift 4**
var sehirler = ["Adana","Adıyaman","Bursa","Çanakkale","Denizli"]
let ilkSehirler = sehirler[..<2]
let sonSehirler = sehirler[2...]
sehirler.count **// Eleman sayısı bulunur**
**//Dictionary kelime:anlamı -> key:value**
var kullaniciBilgileri = ["Adı":"Kerim","Soyadı":"Çağlar","Meslek":"Yazılım Geliştirici"]
kullaniciBilgileri.count
kullaniciBilgileri.updateValue("Çağlar2", forKey: "Soyadı")
kullaniciBilgileri
**//Swift 4 ile geldi**
let yenidenDuzenleSehirler = ["Adana":"0","Adıyaman":"1","Bursa":"2","Çanakkale":"4", "Denizli":"5"]
let sonDurum = Dictionary(grouping:yenidenDuzenleSehirler.keys) {$0.first!}
let sayiyaGore = Dictionary(grouping:yenidenDuzenleSehirler.keys) {$0.count}
sonDurum
sayiyaGore
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
Giving out free votes to the little guys, I hope you appreciate.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks you :) :) :) Good lucky
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @kerimcaglar! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @kerimcaglar I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit