Itis a technicaltopics, so I knowthisisn't necessarilyAttackChannel, but I thought I wouldgiveyou a rundownabouthow I wouldputtogetherandIowa's applicationas a formerIOStechnicalleadoveratYouTube.
Primarily, though, I did a lotofhatefrompeoplewhothinkthat I can't evencoatortheysawmyTwitterthemandassumethattheonlything I knowhowtodoisWebforstackengineering, makingsomeJavaScriptandbackandstuff.
ExploreeverythingfromWebdevelopmentandmarketingtoeentrepreneurship, productivity, M orandbecausesculpturesponsoredthisvideo, I'm gettingthe 1st 500 peopletojoineverytwomonthstrialstocheckmiles, thengetthedescriptionbelow.
Sowhydon't wegetstartedbecause I knowyouguysjustwanttoseemeopenup a bunchofblackterminalsinprofane.
Okay, sothefirstthingyou'regonnawanttodoisdownloadanopenupexcoat, whichisApple's DefLeppardprogramformakingiPhoneApplicationsweregonnaclickon, create X Codeprojectsingleviewapplicationandgiveit a nametodolist.
Sowe'regoingtohavethisconformedto a G listatthatbirthday, thesourceandthenjustfellinthemethodsforthisandforthis, we'regonnahavetocreate a sectioncontrollerwhichwillmanageeachofthesections.
Socreate a newclassheresectioncontrollerwhichcomesfrom I G listsectioncontroller, andtheywantintheobjectsforthelistadapter, whichisthedata.
Sofornow, we'rejustgoingtoreturn a sectionknownastwoDUIsandwithinthesectionthey'regoingtobeindividualitemsforeachtodolist.
Comeintothesectioncontroller.
Wecanstartfillingthisout.
So, like a numberofitems, let's justreturnlikefour.
Butthenyoudon't get a bunchofotherreallycoolfunctionalityanimationsandthatfinergrandcontroloverlike, say, thenetworkloadingimageoptimizationszethatyounormallyprobablywouldbeabletogetifyouweretruly 100% native.
Anyway, we'regoingtocreate a sohereoverridelayout, soviews, whichistheprimarymethodfordrawing, andthenwe'llalsooverwritetheinitiallaysthere.
Youcancheckouttheviews, inspectitright, clickonthings, printeddescriptionandusing P O.
Youcanprintoutvariousitemsfromdoccommands.
Checkoutallthesubviews.
Sothat's a veryusefultoolifyoudidn't knowaboutthatone.
Allright.
Now, whathappenswhenyouclickonthisad?
I themWell, we'regonnawanttopresent, like a taxfieldfortheusertobeabletoputin a todoeither, youknow, we'regonnawantsomesortofdialogue, andinordertodothis, I'm goingtobringinanotherframework.
Andsoif I wantdialogueandthisonelooksprettynice, then I havetodoiscomeoverhere, putinthepotforthis, installitandthen I'llbeabletostartusingthatdialoguerightaway.
Andthere's a propertyhereknownastheexcessreview, whichwecanusetoassign a textinputfield.
Soletmecreatethat.
Getthatsetupforyousoyoucanseethat I canstarttypinginitemsinthetextfieldnowandnowwhatwehavetodoisstartsaidtherearedataandthetodofeelcontroller, I justcreate a arrayofstringstwonewsontheinitialIsarwhenthisliesthattotheemptyarrayandweaddanother.
Wewereatthisintotheraceandtheway I j Let's getworks, actuallyiseverythinghastobeimmutable.
Sowhatwe'regonnadoisactuallycreate a newcopyofthedaythatandsenditinto a jealouskid, sothatunderstandsthatitneedstoupdatetheirtodolistitems.
Sowhat?
Justaddtext, fieldthattexttothetwoDUIsandcreate a newray.
I'lljustcomeintothetodolistitemhere, and I needtowirethisupsuchthatwhenyoupressdelete, itactuallygets a callbackallthewayupintothesectioncontrollerinthecell.
I'm goingtoexposethisdeletebuttonas a propertyactuallyknownatomic.
Makeitreadonly.
SonowthattheLeePartonisexposed.
Sonow I needthewireupthedeletebuttonso I couldsaysouthouttheleapbuttonatTarget, and I needtogiveit a targetandaction, andit's goingtobeonwhentheuserpressesonthebutton.
Andthen I needtousedelegatestoactuallywirethisbackupstreamintothesectioncontroller, whichwillwirethatbackupstreamintothetodoviewcontroller, whichyourtriggeranupdate.
Okay, so, uh, thosearefun.
I'm goingtocreate, like, maybelike a callbackblockfortriggeringupdatesthatisgoingtobe.
Atlessthan $10 a month, Scotiagivesyouunlimitedaccesstoexpertsworkingintheirfieldstohelpyoulearnnewskills.
Andifyourbestlifeexploreclassesinfreelanceandentrepreneurship, Webdevelopmentgraphicdesignyou a creativereadingandproductivity.
Andthatwithparticularly, recommendtheJavascripttogettrainingbyseniorMicrosoftdeveloperChristianHellman, inwhichhewouldteachyouhowtobecome a JavaScriptexpertwithanindepthguide.
Socheckthemupscalesharelikethedescriptionbelow, so I hopetheyenjoythisepisodethatdoformeGivethevideo a likeandsubscribe.
Andthatwasyounexttime.
Thanks.
Bye.
welcomeback.
Subtitles and vocabulary
Click the word to look it upClick the word to find further inforamtion about it