中期報(bào)告-基于ios移動(dòng)終端數(shù)據(jù)查詢(xún)與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第1頁(yè)
中期報(bào)告-基于ios移動(dòng)終端數(shù)據(jù)查詢(xún)與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第2頁(yè)
中期報(bào)告-基于ios移動(dòng)終端數(shù)據(jù)查詢(xún)與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第3頁(yè)
中期報(bào)告-基于ios移動(dòng)終端數(shù)據(jù)查詢(xún)與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第4頁(yè)
中期報(bào)告-基于ios移動(dòng)終端數(shù)據(jù)查詢(xún)與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第5頁(yè)
已閱讀5頁(yè),還剩14頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、xi*an technological university畢業(yè)設(shè)計(jì)(論文)中期報(bào)告題目:基于ios移動(dòng)終端數(shù)據(jù)查詢(xún)與流媒體設(shè)計(jì)與實(shí)現(xiàn)院(系)計(jì)算機(jī)科學(xué)與工程學(xué)院 專(zhuān)業(yè)軟件工程班級(jí)100606班姓名吳潘學(xué) 號(hào)100606119導(dǎo)師楊國(guó)梁2012年5月7日1. 設(shè)計(jì)(論文)進(jìn)展?fàn)顩r畢業(yè)設(shè)計(jì)到目前為止,已經(jīng)實(shí)現(xiàn)了 plist設(shè)計(jì)-頁(yè)而設(shè)計(jì)等各環(huán)境的搭建,大 致模型已經(jīng)完成,部分功能已經(jīng)實(shí)現(xiàn)。系統(tǒng)功能模塊視頻頁(yè)面關(guān)于頁(yè)面反饋信息軟件主要功能模塊截圖 菜單頁(yè)面:新聞頁(yè)面:新聞咨詢(xún)最新 新聞 娛樂(lè)2800分sv嚇尿我.中單極寒 dota情書(shū)角色頁(yè)面:守護(hù)精®煉金術(shù)士發(fā)條地精龍鶇士=英雄列表全部

2、收藏篩選角色介紹頁(yè)面:英雄介紹收藏幻彩利客-榮崔鵝 天災(zāi)敏捷近戰(zhàn)生命值530法木169攻擊力:46-48力置:20+1.85m:23+3.15贄力:13十1.0護(hù)甲s4射種:128 (近)4r;b:.y : 310英雄技能苺本厲性«總之刃(d)幻影突襲(b)英雄背采被諾森德的死靈法師隻活并道塑成尸術(shù)之龍之后,寒冬之龍仍舊擁 有w凍之力為了殲滅世閬一0j閃組著濕昽生命光芒的事物.寒冬 飛龍開(kāi)始攻擊近衛(wèi)軍團(tuán)他有著最純柃的冰元素之力.其寒冷的 呼吸能給盟友帟去生命的活力.也能紿敵人帟去令人發(fā)狂的嚴(yán)寒. 讓他們自相殘殺他還綻發(fā)射寒冰碎片.讓敵人的軍隊(duì)寸步耀行 這樣一種邾惡的、強(qiáng)大的、擁有致命

3、冰霜之力的生物.就連天災(zāi)軍 團(tuán)都不知道這樣的餞傳當(dāng)時(shí)是:&么死去的,篩選角色:=英雄列表全部收藏篩選近衛(wèi)天災(zāi)近戰(zhàn)力置敏捷智力遠(yuǎn)程全部英雄列表收藏篩選瓜近衛(wèi)天災(zāi)近戰(zhàn)力量敏捷智力幻彰綱客嗜獻(xiàn)狂魔鸚王黑場(chǎng)賢者親隊(duì)快的半人馬長(zhǎng) »地神午:1 u金鼴鵪士觸鎭漘仙山嶺巨人牛頭人萏長(zhǎng)w精龍士滇浪鈉客、tt龍破士守護(hù)稍炅煤金術(shù)士發(fā)條地積 mi1 .ma>系統(tǒng)設(shè)置頁(yè)面:系統(tǒng)設(shè)置3版本檢測(cè) ©刪除緩存 q意見(jiàn)反饋0 關(guān)于我們2. 存在問(wèn)題及解決措施(1)在無(wú)網(wǎng)絡(luò)狀態(tài)下沒(méi)有設(shè)置請(qǐng)求超時(shí)的操作。解決措施:限定請(qǐng)求網(wǎng)絡(luò)時(shí)間,超時(shí)時(shí)進(jìn)行提示。(2)流媒體播放問(wèn)題:優(yōu)酷沒(méi)有提供私人視頻播放

4、接u。解決措施:嘗試查找其他網(wǎng)站的視頻資源。(3)反饋信息:沒(méi)有指定信息發(fā)送地址。解決措施:嘗試搭建服務(wù)器,接收反饋信息。3. 后期工作安排完善后期程序功能,解決存在的問(wèn)題。完成程序后寫(xiě)好畢業(yè)論文。中文文獻(xiàn)objective-c,是擴(kuò)充c的面向?qū)ο缶幊陶Z(yǔ)言。它主要使用于mac os objective-c,通 常寫(xiě)作objc和較少用的objective c或obj-c,是在c的基礎(chǔ)上,加入而向?qū)ο筇匦詳U(kuò)充 而成的編程語(yǔ)言。目前,objective-c主要應(yīng)用于mac os x和ios這兩個(gè)nextstep的 衍生系統(tǒng),而在nextstep和openstep中它更是基本語(yǔ)言。objective-

5、c語(yǔ)言歷史1980年代初,布萊德確斯(brad cox)在其公司stepstone發(fā)明objective-c,它以一種 叫做smalltalk-80的語(yǔ)言為基礎(chǔ)。objective-c建立在c語(yǔ)言之上,意味著它是在c語(yǔ)言基 礎(chǔ)上添加了擴(kuò)展而創(chuàng)造出來(lái)的能夠創(chuàng)建和操作對(duì)象的一門(mén)新的程序設(shè)計(jì)語(yǔ)言。對(duì) objective-c 最主要的描述是他 1986 年出版的 «object-oriented programming, an evolutionary approach、1988年,next software公司獲得了 objective-c語(yǔ)言的授權(quán),并開(kāi)發(fā)出了 objective-c的語(yǔ)

6、言庫(kù)和一個(gè)名為nextstep的開(kāi)發(fā)環(huán)境。1992年,自由軟件基金會(huì)的gnu開(kāi)發(fā)環(huán)境增加了對(duì)objective-c的文持。1994年,next computer公司和升陽(yáng)微系統(tǒng)(sun microsystem)聯(lián)合發(fā)布了一個(gè)針對(duì) nextstep系統(tǒng)的標(biāo)準(zhǔn)典范,名力openstep。openstep在自由軟件基金會(huì)的實(shí)現(xiàn)名 稱(chēng)為 gnustep。1996年12月20日,蘋(píng)果公司宣布收購(gòu)next software公司,nextstep/openstep環(huán)境成為蘋(píng)果操作系統(tǒng)下一個(gè)主要發(fā)行版本os x的基礎(chǔ),這個(gè)開(kāi)發(fā)環(huán)境的該版本被蘋(píng)果公司稱(chēng)為cocoa o objective-c語(yǔ)言?xún)?yōu)缺點(diǎn)apple

7、在其mac os x 10.3中仍未引入垃圾回收這個(gè)功能。不過(guò)令人欣慰的是在apple發(fā)布 的乂(:0(4屮已經(jīng)支持自動(dòng)釋放啦,我不敢冒昧地說(shuō)那是垃圾回收,因?yàn)閮烧邫C(jī)制不同,在 xcode4屮的自動(dòng)釋放,也就足arc(automatic reference counting)機(jī)制,是不需要用戶(hù)手 動(dòng)去release 一個(gè)對(duì)象,而是在編譯期間,編譯器會(huì)自動(dòng)幫你添加那些以前你經(jīng)常寫(xiě)的 nsobject release o另一個(gè)問(wèn)題是objc不包括命名空間機(jī)制(namespace mechanism)。取而代之的是程序設(shè)卟 師必須在其類(lèi)別名稱(chēng)加上前綴,時(shí)常引致沖突。在2004年,在cocoa編程環(huán)境

8、中,所有mac os x類(lèi)別和函式均有ns"作為前綴,例如nsobject或nsbutton來(lái)清楚分別它們屬 于mac os x核心;使用"ns"是巾于這些類(lèi)別的名稱(chēng)在nextstep開(kāi)發(fā)時(shí)定t。雖然objective-c是c的母集,但它也不視c的基本型別為第一級(jí)的對(duì)象。和c+不同,objective-c不支援運(yùn)算子多載(它不支持ad-hoc多型)。亦與c+不同,但 和java相同,objective-c只容許對(duì)象繼承一個(gè)類(lèi)別(不設(shè)多重繼承)。categories和 protocols不但可以提供很多多重繼承的好處,而且沒(méi)有很多缺點(diǎn),例如額外執(zhí)行時(shí)間過(guò)重 和二進(jìn)制

9、不兼容。由于obj-c使用動(dòng)態(tài)運(yùn)行時(shí)類(lèi)型,而且所有的方法都是函數(shù)調(diào)用(有時(shí)甚至連系統(tǒng)調(diào)用 (syscalls)也如此),很多常見(jiàn)的編譯時(shí)性能優(yōu)化方法都不能應(yīng)用于obj-c (例如:內(nèi)聯(lián)函數(shù)、常數(shù)傳播、交互式優(yōu)化、純量取代與聚集等)。這使得obj-c性能劣于類(lèi)似的對(duì)象抽象 語(yǔ)言(如c+)。不過(guò)obj-c擁護(hù)者認(rèn)為既然obj-c運(yùn)行時(shí)消耗較大,obj-c本來(lái)就不應(yīng)應(yīng) 川于c+或java常見(jiàn)的底層抽象。objective-c簡(jiǎn)明教程 前言開(kāi)始學(xué)習(xí)前,假設(shè)你己經(jīng)具備了一些c語(yǔ)言的基礎(chǔ)知識(shí),包桮變量類(lèi)型、函數(shù)、返回伉、以 及指針的相關(guān)概念。如果對(duì)這些還不了解,建議首先學(xué)習(xí)譚浩強(qiáng)的c程序設(shè)計(jì)。 objec

10、tive-c,是c的衍生體,繼承了所有c語(yǔ)言的特性。是有一些例外,但是它們不是 繼承于c的語(yǔ)言特性本身。nil:在c/c+你或許曾使用過(guò)null,而在objective-c屮則是nil。不同之處是你可以 傳遞訊息給nil(例如nil message;),這是完全合法的,然而你卻不能對(duì)null如法飽制。 bool: c沒(méi)有正式的布爾類(lèi)型,而在objective-c中也不是真的有。它是包含在 foundation classes(基本類(lèi)別庫(kù))巾(即import nsobject.h;nil也是包括在這個(gè)標(biāo)頭檔內(nèi))。 bool在objective-c中有兩種型態(tài):yes或no,而不是true或fal

11、se。#import vs include:就如同你在hello world范例巾看到的,我們使用了 #importo #import 巾gcc編譯器支援。我并不建議使用include, #import基本上跟.h檔頭尾的#ifndef #define#endif相同。汴多程式員們都同意,使用這些東西這是十分愚蠢的。無(wú)論如何,使 川#import就對(duì)了。這樣不但可以避免麻煩,而且萬(wàn)一有一天gcc把它拿棹了,將會(huì)有足 夠的objective-c程式員可以堅(jiān)持保留它或是將它放回來(lái)。偷偷告訴你,apple在它們官 方的程式碼中也使用了 #import0所以萬(wàn)一有一天這種事真的發(fā)生,不難預(yù)料apple

12、將會(huì)提供一個(gè)支援#import的gcc分支版本。objective-c屮,method及message這兩個(gè)字是可以互換的。不過(guò)messages擁有特 別的特性,具體區(qū)別在后面介紹。編譯 hello world1. hello.m2.2. # main( int argc, const char *argv) 6.7. printf( "hello worldn");8.8. return 0;10.11.輸出hello world在 objective-c 中使用 #import 代替 #include objective-c的預(yù)設(shè)副檔名是.m

13、創(chuàng)建classeinterface基于"programming in objective-c,n copyright (c) 2004 by sams publishing 書(shū)屮的范例,并經(jīng)過(guò)允許而刊載。1. fraction.h2.2. #import4.3. interface fraction: nsobject 6.7.int numerator;8.9.int denominator;3. -(void) print;14.14. -(void) setnumerator: (int) n;16.15. -(void) setdenominator: (

14、int) d;18.16. -(int) numerator;20.17. -(int) denominator;22.23.endnsobject: nextstep object的縮寫(xiě)。因?yàn)樗航?jīng)改名為openstep,所以這在今天己經(jīng)不是那麼有意義了。繼承(inheritance)以 class: parent 表示,就像上而的 fraction: nsobject。夾在 interface class: parent .中的稱(chēng)為 instance variables。沒(méi)有設(shè)定存取權(quán)限(protected, public, private)時(shí),預(yù)設(shè)的存取權(quán)限為protected。設(shè)定權(quán)限

15、的方式將在稍后說(shuō)明。instance methods 跟在成員變數(shù)(即 instance variables)沿。格式為:scope (returntype) methodname: (parameterltype) parameterlname;scope 有 class 或 instance 兩種。 instance methods 以-升頭,class level methods 以 + 升頭。interface以一個(gè)end作為結(jié)束。原生的hello world代碼1. # main (int argc,const char * argv) 4.3. nsaut

16、oreleasepool * pool = nsautoreleasepool alloc init;6.7.ii insert code here.8.9. nslog("hello, world!");10.10. pool drain;12.11. return 0;14.12. 以上是xcode開(kāi)發(fā)環(huán)境下默認(rèn)的.m文件內(nèi)容,就是原生的hello world范例代碼。小貼士在 objective-c 中 #import 和 #include 的區(qū)別?在objective-c中,#import被當(dāng)成include指令的改良版本來(lái)使用。除此之外,#import確定一個(gè)文件

17、只能被導(dǎo)入一次,這使你在遞歸包含中不會(huì)出現(xiàn)問(wèn)題。使用哪一個(gè)還是由你 來(lái)決定。一般來(lái)說(shuō),在導(dǎo)入objective-c頭文件的時(shí)候使用#import,包含c頭文件時(shí)使 用 #include。英文文獻(xiàn)objective-c is c an extension of object-oriented programming language. it is mainlyused in mac os objective-c,and less often used objc writing objective c or obj-c, c is based on adding object-oriented p

18、rogramming language features from the expansion. currently, objective-c is mainly used in mac os x and ios both nextstep derived systems, and in the nextstep and openstep in its more basic language.objective-c language historyearly 1980s,brad cox (brad cox) in their company stepstone invention objec

19、tive-c, it is in a language called smalltalk-80 basis. objective-c is built on the c language, which means it is based on the c language extensions added and created the ability to create and manipulate objects in a new programming language.objective-c for a description of the most important is that

20、 he published in 1986, "object-oriented programming, an evolutionary approach".in 1988, next software company received authorization objective-c language and developed objective-c language library and a development environment callednextstep.in 1992, the free software foundation's gnu

21、development environment adds support for objective-c.s.in 1994, next computer corporation and sun microsystems (sun microsystem) jointly issued a standard model for nextstep system, called openstep. openstep implementation of the free software foundation in the name of gnustep.december 20, 1996, app

22、le announced the acquisition of next software company, nextstep / openstep environment under apple's operating system became the basis of a major release of os x,the version of this is apples development environment calledcocoa.objective-c language strengths and weaknessesapple in its mac os x 1

23、0.3 in garbage collection has not yet introduced this feature. but the good news is that apple has released xcode4 supports automatic release it,i would not venture to say it is garbage,both because of the different mechanisms of automatic release xcode4,that is arc (automatic reference counting) me

24、chanism does not require the user to manually release of an object, but during compilation,the compiler will automatically help you add those before you often write nsobject release.another problem is that objc does not include a namespace mechanism (namespace mechanism). instead, programmers must b

25、e prefixed with the name in its category , often lead to conflict. in 2004 , the cocoa programming environment, all mac os x classes and functions are "ns" as a prefix , such as nsobject or nsbutton they belong respectively to clear the core of mac os x ; using the "ns" is due to

26、 the names of these categories set in the nextstep development.although objective-c is a set of c's mother, but it is not essential,as the c type is first -class objects.and c + + different,objective-c does not support operator overloading (it does not support ad-hoc polymorphism ). also with c

27、+ + is different, but the same and java, objective-c only allows objects to inherit a class ( no multiple inheritance ). categories and protocols not only provide many of the benefits of multiple inheritance , but not a lot of shortcomings, such as additional execution time is too heavy and not comp

28、atible binaries .since obj-c using dynamic run-time type,but all methods are function calls (sometimes even system calls (syscalls) for that matter),many common compile-time performance optimization methods can not be applied to obj-c (for example : the inline functions,constant propagation,interact

29、ive optimization, scalar replacement and aggregates,etc.). this allows obj-c inferior performance to similar language abstract object (e.g.,c + +) but obj-c advocates that since obj-c runtime consumption of large , obj-c should not have been applied to c + + or java common underlying abstraction.con

30、cise guide to objective-cbefore you begin to learn, assuming you already have some basic knowledge of c language,including variable type,function return values, and related concepts pointer. if these do not yet know,it is recommended to first learn hemopurification the "c programming ?objective

31、-c, c is the derivative of inherited characteristics of all of the c language . there are some exceptions, but they are not inherited from the c language features itself.nil: in c / c + + you may have used null, while in objective-c is nil. the difference is that you can pass a message to nil ( eg n

32、il message ;),which is perfectly legal,but youcan not do the same for null .bool: c no formal boolean type,while in objective-c is not" really " there . it is included in the foundation classes ( basic class library ) (ie import nsobject.h; nil is also included in this header file ). there

33、 are two types bool in objective-c in : yes or no,instead of true or false.林 import vs # include: as you see in the hello world example, we use the # import. # import supported by the gcc compiler. i do not recommend the use of # include, # import is basically the same . h file the head and tail of

34、the same # ifndef # define # endif. many programmers have agreed to the use of these things it is very stupid. in any case , the use of# import on the right. this will not only avoid trouble, but if one day gcc it removed,there will be enough objective-c programmers can insist on keeping it, or put

35、it back . secretly tell you,apple in their official code also uses the# import. so if one day such a thing really happens,not hard to predict apple will provide a support # import branch of gcc version .in objective-c , method and message these two words are interchangeable . but messages have speci

36、al features,specific differences described later.compile hello world1. hello.m2.2. 林 i main (int argc,const char * argv ) 6.4. printf ("hello world n");8.5. return 0;10.11.exporthello worlduse # import instead of # include in objective-c,objective-c is the default extension is.

37、 m creating classe interfacebased on "programming in objective-c,w copyright (c) 2004 by sams publishing a book sample, and after permission of the publication.1. fraction.h2.2. 林 import4.5 interface fraction:. nsobject 6.7.int numerator;8.9.int denominator;3 - (void) print;14.15 - (v

38、oid) setnumerator: (int) n;16.17 - (void) setdenominator: (int) d;18.19 - (int) numerator;20.21 - (int) denominator;22.23. endnsobject: nextstep object abbreviations. because it has been renamed openstep, so this is not so in today's sense.succession (inheritance) to class: parent said, like the above fraction: nsobject. caught in the interface class: parent . is called an instance varia

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論