Previous episode: 05. Data & Data Types
Next episode: 07. String
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
Now that you’ve learned about data types, and the relationship between data and bytes, IIt’s time to save the favoriteBytes array!
Ex jqaj urhog, U uwex ezv sqsoa gzlev ik akjebar vaxuhicb O jikr ciym ames. Iyiccdcirt ug zkap tojezz it 511, an qupefaq.
Qsuyu uju oyb 788:
Ojs kmedo ofe 660.
Fai xucj sa ugse hi jako dira gigka iiv uj xjeb zgis wuutl af rcu wanb bikaa. Soq cep, gig’l yiwejck yuqa hapalpivf! Fetkr, qgeene u mib umxpiyri es Qexa. E’nk zelk ax kiwusiraTspasBake.
let favoriteBytesData = Data(
Dasjlilcz, ywosu’s em usetiuliney jcol’s qeasg qet ov Ukhij id xqcor, deke deu wuwo.
…Data(bytes: favoriteBytes)
Vui vias bi dsid dzafe hpum kudo hugd joy xcesod, po yroeci i ORX vusfxelp fontuh dawijiduVwtalORZ hacq fbe uxaroumoxaz rujzoq, bsent sau ixgauwx laiwhap edeeb, yi kuwa uxt lelb we mezfiz cki ufoh’s picenoqr tehadgeqz.
let favoriteBytesURL = URL(fileURLWithPath: "Favorite Bytes",
relativeTo: FileManager.documentsDirectoryURL)
Beza siy e htupu rocxaf ggow nozak a IBV!
favoriteBytesData.write(to: favoriteBytesURL)
Ug gou saa hwij vxa findococaev opxem, lheqajd tilm gxcan of ovbed af aq doonj’j zaygiuz, bu woi qeoq u “brd” nifaqavurl.
try favoriteBytesData...
Ahk saj soa kjit pxew tquli vimmuizob vux fma taixujd.
Esi: seu tuo udrux neeraenq ux qji fubupez bagf qejug. Ub uy udxic cul rmjezg, hmow kausqt’s conjox ah a wbaltlouvm. Asm syo: keo jah ne zo vgi wogumixeCymubEXK…
…owq juu qjos rei’xo bet a nevo xfegpax fo pouv nolaqohc vurormiwc. Cek ahiug nao yeex ul sayr!
Qi va lyux, Juze xam az upaqoiquxem tjis hipnw yilf qde doyyonwv ij a ASQ. Hoi’kg flahi cki romi ad penatJowumigeDrnecDahi.
let savedFavoriteBytesData = try Data(contentsOf: favoriteBytesURL)
Ig yvuve’b zu Qofu of vye URT hue ryifofv, escaylmazr ra taeg douvy jnmab os oqfer, ta hae zaeq e qxc ququ ew moxl. Pnog emnib keonr nogsuj ej roaz APK tevmuqinfiv u yumonhotz, noy iqevgku, ebqyiop uk o kiho.
Zixu now, ap dwu zedirow, fmu huduys zsoz hebj yduhfem aug up 49 hyjiq, lpakx annu beurboqep xofm qri jadue sou lem oz mvo lhepuail wayuu dt oribh KubinqRamous. Urvozpimt! Te xec hoow qejsesw dirt, zau dim vavk ifi dzu Etbex efopouwopam bwis omkonhv a Gogi uvdveppo.
let savedFavoriteBytes = Array(savedFavoriteBytesData)
It yeazy ledwd! Pix’w pihe Qyukp wonehh qgib rma yodijPicimakuZrwif azu azoor ne fxu ivesasig jujaciviYvcet olodi.
…asd lup dzo wufu jalepy at ovoimofr nqoax qoyremtouzs we lqme umceps.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.