欢迎来到天天文库
浏览记录
ID:40048895
大小:100.10 KB
页数:7页
时间:2019-07-18
《Assignment 4》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、STANFORDCS193PIOSAPPLICATIONDEVELOPMENT!!FALL2010AssignmentIV:UniversalCalculatorObjectiveThegoalofthisassignmentistomakeyourCalculatorworkonboththeiPadandiPhone(andiPodTouch)platforms.Youwillbuildasingleapplicationthatworksonbothusingconditionalcodeinsideyourapplica
2、tion.Yourapplicationwillbeenhancedtohandletouchgesturesandpreserveitsstateacrosslaunchesaswell.BesuretocheckouttheHintssectionbelow!Also,checkoutthelatestadditionstotheEvaluationsectiontomakesureyouunderstandwhatyouaregoingtobeevaluatedonwiththis(andfuture)assignment
3、s.Materials•Ifyousuccessfullyaccomplishedlastweek’sassignment,thenyouhaveallthematerialsyouneedforthisweek’s.Itisstronglyrecommendedthatyoumakeacopyoflastweek’sassignmentbeforeyoustartmodifyingitforthisweek’s.PAGE1OF7!!ASSIGNMENTIV:UNIVERSALCALCULATORSTANFORDCS193PIO
4、SAPPLICATIONDEVELOPMENT!!FALL2010RequiredTasks1.YourCalculatorapplicationmustworkproperlyonboththeiPadandiPhone,usingappropriateuser-interfaceidiomsoneach.YoursubmittedapplicationwillbebuiltusingtheiOS4SDKandthentestedagainstboththe3.2iPadSimulatorandtheiOS4iPhoneSim
5、ulator.2.Specifically,ontheiPad,insteadofhavingacalculatorinanavigationcontrollerwhichpushesthegraphon-screenwhentheGraphbuttonispressed,asplitviewshouldbeusedinstead.InlandscapemodeyourUIshouldappearwithyourgraphontherightandthecalculatorontheleft,andinportraitmode,t
6、hegraphshouldfillthescreenandthereshouldbeabarbuttonwhichbringsupapopoverofthecalculator.Thecalculator’sGraphbuttonshouldstillupdatethegraph,nomatterwherethegraphisintheUI.3.Removethezoominandzoomoutbuttonsand,instead,modifyyourapplicationtorecognizethefollowing3gestu
7、resinyourcustomgraphview:a.Itmusttranslateit’soriginwhentheuserpansaroundwithasingletouch.b.Itmustzoominandoutwhentheuserpinchesinandout.c.Whentheuserdouble-tapsonyourgraphview,itshouldmovethegraph’soriginbacktothecenteroftheview.4.Donotusea.xibfilefortheuser-interfac
8、eofyourgraphviewcontrolleranymore.5.Wheneveryourcalculatorappearsinapopover,thepopovershouldbesizedappropriatelytofitthecalculator.6
此文档下载收益归作者所有