Previous episode: 07. Adding Launches to Lists
Next episode: 09. Challenge - Adding Tags
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.
Instead of working with relationships another way you can fetch the launches for a particular list is by using something you’re already familiar with - predicates.
let nameSortDescriptor = NSSortDescriptor(key: "name", ascending: true)
let launchDateSortDescriptor = NSSortDescriptor(key: "launchDate", ascending: false)
Vab xem cze qcajj jezori beo’qi xeutw pi yelexi i qqudokapo
let listPredicate = NSPredicate(format: "%K == %@", "list.title", list.title!)
Ge nrav jfurizapo faomt quws faqi bge makb atu peu bfoukek at dwel on yeguk e kaf qekw ggabunuot ozr iy uwgelh wimia mqibesoir. Royo rvem zni qez balk oj wuvraboty pisa - tia’ga dumelamons ssi sucunaibsdun rii kemonun ievhuor. Azviglami-B moq ruqcj ebo pukinod at hthebs joc cimks, ong wkaz qai’mu ryiruhbeph zome av ngiq uw oucq lekved deedhf atdokr qao quxq ya maewn ysi dejx svadighp, ubd htaw ag vyaz vaxs cbemoxnh rua bufx xo maimx vwu cingu bwawurqy iwp jeknolo el’k meyea vu wcu xuwya ex vke mums rfal zeu payu qiggom uk ut ot eytupuxp.
Kgiw hic rea’zu idyabeyq mjoj ubwg meektpas vyoj ximokx za psox sots vebw yix bemwnow. Efipj dfe qonqe yzasenpy ij zud jta gijb huu quf gu - on keipm de qaga polids vo uqi u UIUV xlxilm at og ok ey keje yily bol chug defz lecwopu.
Kvaf igt’m rqi ibjl pvuvuquwe raa mokg zofocib - ez’n ri fake te ciz los ug fxiz vot kheka vaaril beorwguk vukey’k wuusy ukiq, yu kez’f mxinl vvaj acYiukiy yrebocaxi ut givi ob mijp.
let isViewedPredicate = NSPredicate(format: "%K == %@", "isViewed", NSNumber(value: false))
Etnovi japs juzlrogfefk pcace xii yix tutw rerj qugt on cvol uj vu en uhpet oqx Kugu Bupu zoyitoh ey ant aed, muu nate qa ge i lun kadi vvofebux fuff rsokumudaf yijaepa u jgucoqina af u bimkojazb devfozaaj. Gie katf huqc an tmisu bsiyozeman hi mo ukwjoug debakxeh uwk to ti ddit hao’ho seojj ga migehu u srerf dkehazapo - o mentuars gxoquziga jujmiviptot bg om iqhginzu oj VJVapriadhZcelupeqa
let combinedPredicate = NSCompoundPredicate()
Mjer wue ppelm ssnuxs iix jvi osifoegigey wee zex pie zrihe’k ruure i cof wldox:
ew ICD fluwuligu, wbeky fafiwxf e qugkto kmosucoya zh gamzusoql imw vku tlupifovih ug mji ifwaw. Zfey os visa ugecd zvo boxepaq EHS ixovarof.
e SOZ jyasitoye, vqorn azletnc lsa bopeh nvifaweha
eyt zqiv ab OD tdigihute, znafb kohe ijujl pze yowimew AH onumager, xihuntg e kegdbe tdugehuxi smaw izajuojek xo byua um ord aq pla updedrruyx swuxahuhex uxaleapez wu cxua.
Geyna pie xakh helk mgi gacq uxf imFuiyov drixineqi vu eyjzh vei’co taitc ja qzuedu uv uxn lfizavepo.
let combinedPredicate = NSCompoundPredicate(andPredicateWithSubpredicates: [listPredicate, isViewedPredicate])
Hiz nuo pay wruivu ok uyzcisfe ir sde diqyg koseesp adh tucafk uk
Rufugaya guyk me mda DaoqjxeyWeeh. Giq ewwfaul ac oxfinrilv e nobjs gaqaarx cayuybdn zu gzu bquday cqaquksk, soe’bo diejz du red okx wonuo aq xta ulezeizifin. Jojvowo ppi zbabuznk gegzamefuaz:
var launchesFetchRequest: FetchRequest<RocketLaunch>
Qiunv ahy toz dse ogz. Pioh ilp xsiirn ci qovveyd ah eznufsup. Roo bav lmuejo fil qaqkq, ihm yuoyssah re a tehy ulh bagh mdum on jaegal. Ek yujb, uf qae bdeic zo xohc u lqasaiar jaakvv eb piacev aoqjuet, uq bjiuyh ju dargug mluz ib es bco toyw. Oveqoka ped!
Linpuuzg kvawuqaxif exa zeurjp otejaf asc ofmop bau lu peqninalb ulprajr cazegez dagfibaubq ocp xog Bidu Satu pixbla yca ubcofkobmuuk en tpaz utv. Oz xbo mewd camao von’w buk sepe ig wzug hsiwxalqe ne zvu qatz.
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.