畢業(yè)論文-基于ios移動終端數(shù)據(jù)查詢與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第1頁
畢業(yè)論文-基于ios移動終端數(shù)據(jù)查詢與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第2頁
畢業(yè)論文-基于ios移動終端數(shù)據(jù)查詢與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第3頁
畢業(yè)論文-基于ios移動終端數(shù)據(jù)查詢與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第4頁
畢業(yè)論文-基于ios移動終端數(shù)據(jù)查詢與流媒體設(shè)計(jì)與實(shí)現(xiàn)_第5頁
已閱讀5頁,還剩53頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、本科畢業(yè)設(shè)計(jì)(論文)題目:基于ios移動終端數(shù)據(jù)查詢與流媒體設(shè)計(jì)與實(shí)現(xiàn)院(系) 計(jì)算機(jī)科學(xué)與工程學(xué)院 專 業(yè) 軟件工程 班 級 姓 名 學(xué) 號 導(dǎo) 師 2014年 6月本科畢業(yè)設(shè)計(jì)(論文)題目:基于ios移動終端數(shù)據(jù)查詢與流媒體設(shè)計(jì)與實(shí)現(xiàn)院(系) 計(jì)算機(jī)科學(xué)與工程學(xué)院 專 業(yè) 軟件工程 班 級 姓 名 學(xué) 號 導(dǎo) 師 2014年 6月西安工業(yè)大學(xué)畢業(yè)設(shè)計(jì)(論文)任務(wù)書院(系)計(jì)算機(jī)科學(xué)與工程學(xué)院專業(yè)軟件工程 6姓名學(xué)號1.畢業(yè)設(shè)計(jì)(論文)題目: 基于ios移動終端數(shù)據(jù)查詢與流媒體設(shè)計(jì)與實(shí)現(xiàn) 2.題目背景和意義:方便用戶查詢相關(guān)信息 3.設(shè)計(jì)(論文)的主要內(nèi)容(理工科含技術(shù)指標(biāo)):本課題要求學(xué)生

2、通過復(fù)習(xí)相關(guān)課程內(nèi)容;閱讀有關(guān)資料,應(yīng)用網(wǎng)絡(luò)編程技術(shù)設(shè)計(jì)網(wǎng)上音像商城;總結(jié)畢業(yè)設(shè)計(jì)并寫出論文;并通過外文資料翻譯等環(huán)節(jié)的實(shí)踐得到綜合的工程訓(xùn)練。 網(wǎng)上音像商城分為五個(gè)大的模塊: 1、游戲新聞查看; 2、游戲人物查看; 3、游戲裝備查看; 4、游戲周邊推薦; 4.設(shè)計(jì)的基本要求及進(jìn)度安排(含起始時(shí)間、設(shè)計(jì)地點(diǎn)):畢業(yè)設(shè)計(jì)在大四第二學(xué)期1-18周于校內(nèi)進(jìn)行,其具體安排如下: 1.準(zhǔn)備階段(第一周-第二周):了解課題,搜集相關(guān)資料,進(jìn)行開題。 2.系統(tǒng)分析階段(第三周-第四周):確定總體設(shè)計(jì)方案,相關(guān)實(shí)現(xiàn)的算法設(shè)計(jì)。 3.模塊編寫階段(第五周-第十周):具體算法的實(shí)現(xiàn)。 4.總體實(shí)現(xiàn)及測試階段(第十

3、一周-第十四周):完成相應(yīng)的代碼編寫,實(shí)現(xiàn)所有的功能,進(jìn)行總體測試,使之完全達(dá)到設(shè)計(jì)要求。 5.寫畢業(yè)論文,準(zhǔn)備畢業(yè)答辯(第十五周-第十八周)。 5.畢業(yè)設(shè)計(jì)(論文)的工作量要求 畢業(yè)論文不少于15000字 實(shí)驗(yàn)(時(shí)數(shù))*或?qū)嵙?xí)(天數(shù)): 600機(jī)時(shí) 圖紙(幅面和張數(shù))*: 其他要求: 指導(dǎo)教師簽名: 年 月 日學(xué)生簽名: 年 月 日 系(教研室)主任審批: 年 月 日說明:1本表一式二份,一份由學(xué)生裝訂入附件冊,一份教師自留。畢I-22 帶*項(xiàng)可根據(jù)學(xué)科特點(diǎn)選填。畢I-2 附 錄畢業(yè)設(shè)計(jì)(論文)外文資料翻譯院 (系): 計(jì)算機(jī)科學(xué)與工程學(xué)院 專 業(yè): 軟件工程 學(xué) 生: 吳潘 學(xué) 號: 10

4、0606119 指導(dǎo)教師: 楊國梁 2014年 06月Objective-CObjective-C is C an extension of object-oriented programming language. It is mainly used in Mac OS Objective-C, and less often used ObjC writing Objective C or Obj-C, C is based on adding object-oriented programming language features from the expansion. Currentl

5、y, 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 Objective-C, it is in a language called SmallTalk-80 basis. O

6、bjective-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 he published in 1986, Object-oriented Programming, An

7、Evolutionary Approach.In 1988, NeXT Software company received authorization Objective-C language and developed Objective-C language library and a development environment called NEXTSTEP. In 1992, the Free Software Foundations GNU development environment adds support for Objective-Cs. In 1994, NeXT C

8、omputer 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, Apple announced the acquisition of NeXT Software company, NEXTSTEP / OPE

9、NSTEP environment under Apples operating system became the basis of a major release of OS X, the version of this is Apples development environment called Cocoa.Objective-C language strengths and weaknessesApple in its Mac OS X 10.3 in garbage collection has not yet introduced this feature. But the g

10、ood 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) mechanism does not require the user to manually Release of an object

11、 , 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 be prefixed with the name in its category , often lead to confli

12、ct. 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 the names of these categories set in the NeXTSTEP development .Although Objective-C is

13、 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 + + is different, but the same and Java , Objective-C only allows objects to inheri

14、t 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 compatible binaries .Since Obj-C using dynamic run-time type , but all methods are fu

15、nction 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 , interactive optimization, scalar replacement and aggregates , etc. ) . This allo

16、ws 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.Concise Guide to Objective-CBefore you begin to learn, assuming you a

17、lready 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-C, C is the derivative of inherited characteristics of all of the

18、 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 nil message ;), which is perfectly legal , but you can not do the

19、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 are two types BOOL in Objective-C in : YES or NO, instead of TRUE or F

20、ALSE.# 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 the same # ifndef # define # endif. Many programmers have agreed to th

21、e 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 it back . Secretly tell you , Apple in their official code also use

22、s 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 special features, specific differences described later.Compile hell

23、o world1.hello.m 2. 3. # Import 4. 5.int main (int argc, const char * argv ) 6. 7.printf (hello world n); 8. 9.return 0; 10. 11. Export hello world Use # import instead of # include in Objective-C, Objective-C is the default extension is. MCreating classe interface Based on Programming in Objective-

24、C, Copyright (C) 2004 by Sams Publishing a book sample, and after permission of the publication. 1.Fraction.h 2. 3. # Import 4. 5 interface Fraction:. NSObject 6. 7.int numerator; 8. 9.int denominator; 10. 11. 12. . 13 - (void) print; 14. . 15 - (void) setNumerator: (int) n; 16. . 17 - (void) setDen

25、ominator: (int) d; 18. . 19 - (int) numerator; 20. . 21 - (int) denominator; 22. end NSObject: NeXTStep Object abbreviations. Because it has been renamed OpenStep, so this is not so in todays sense. Succession (inheritance) to Class: Parent said, like the above Fraction: NSObject. Caught in the inte

26、rface Class: Parent is called an instance variables. When not set access permissions (protected, public, private), the default access permissions protected. Set permissions manner described later. Instance methods with the member variables (ie instance variables) after. The format is: scope (returnT

27、ype) methodName: (parameter1Type) parameter1Name; scope has two kinds of class or instance. instance methods to - at the beginning, class level methods to + the beginning. Interface with an end as the end. Hello World native code1. # Import 2. 3.int main (int argc, const char * argv ) 4. 5.NSAutorel

28、easePool * pool = NSAutoreleasePool alloc init; 6. 7. / / Insert code here . 8. 9.NSLog ( Hello, World!); 10. . 11 pool drain; 12. 13.return 0; 14. 15. The above is a default under the Xcode development environment. M file content is native Hello World example code. Tips: # difference between import

29、 and # include in Objective-C in? In Objective-C, # import as # include directive is an improved version to use. In addition, # import determine if a file can only be imported once, which makes the problem does not appear that you include in the recursion. Which one is up to you to decide. In genera

30、l, import Objective-C header files when using # import, use the # include that contains C header files.中文翻譯Objective-C,是擴(kuò)充C的面向?qū)ο缶幊陶Z言。它主要使用于Mac OS Objective-C,通常寫作ObjC和較少用的Objective C或Obj-C,是在C的基礎(chǔ)上,加入面向?qū)ο筇匦詳U(kuò)充而成的編程語言。目前,Objective-C主要應(yīng)用于Mac OS X和iOS這兩個(gè)NeXTSTEP的衍生系統(tǒng),而在NeXTSTEP和OpenStep中它更是基本語言。Objective

31、-C語言歷史1980年代初,布萊德確斯(Brad Cox)在其公司Stepstone發(fā)明Objective-C,它以一種叫做SmallTalk-80的語言為基礎(chǔ)。Objective-C建立在C語言之上,意味著它是在C語言基礎(chǔ)上添加了擴(kuò)展而創(chuàng)造出來的能夠創(chuàng)建和操作對象的一門新的程序設(shè)計(jì)語言。對Objective-C最主要的描述是他1986年出版的Object-oriented Programming, An Evolutionary Approach。1988年,NeXT Software公司獲得了Objective-C語言的授權(quán),并開發(fā)出了Objective-C的語言庫和一個(gè)名為NEXTSTE

32、P的開發(fā)環(huán)境。1992年,自由軟件基金會的GNU開發(fā)環(huán)境增加了對Objective-C的支持。1994年,NeXT Computer公司和升陽微系統(tǒng)(Sun Microsystem)聯(lián)合發(fā)布了一個(gè)針對NEXTSTEP系統(tǒng)的標(biāo)準(zhǔn)典范,名為OPENSTEP。OPENSTEP在自由軟件基金會的實(shí)現(xiàn)名稱為GNUStep。1996年12月20日,蘋果公司宣布收購NeXT Software公司,NEXTSTEP/OPENSTEP環(huán)境成為蘋果操作系統(tǒng)下一個(gè)主要發(fā)行版本OS X的基礎(chǔ),這個(gè)開發(fā)環(huán)境的該版本被蘋果公司稱為Cocoa。Objective-C語言優(yōu)缺點(diǎn)Apple在其Mac OS X 10.3中仍未引

33、入垃圾回收這個(gè)功能。不過令人欣慰的是在Apple發(fā)布的xCode4中已經(jīng)支持自動釋放啦,我不敢冒昧地說那是垃圾回收,因?yàn)閮烧邫C(jī)制不同,在xCode4中的自動釋放,也就是ARC(Automatic Reference Counting)機(jī)制,是不需要用戶手動去Release一個(gè)對象,而是在編譯期間,編譯器會自動幫你添加那些以前你經(jīng)常寫的NSObject release。另一個(gè)問題是ObjC不包括命名空間機(jī)制(namespace mechanism)。取而代之的是程序設(shè)計(jì)師必須在其類別名稱加上前綴,時(shí)常引致沖突。在2004年,在Cocoa編程環(huán)境中,所有Mac OS X類別和函式均有NS作為前綴,

34、例如NSObject或NSButton來清楚分別它們屬于Mac OS X核心;使用NS是由于這些類別的名稱在NeXTSTEP開發(fā)時(shí)定下。雖然Objective-C是C的母集,但它也不視C的基本型別為第一級的對象。和C+不同,Objective-C不支援運(yùn)算子多載(它不支持ad-hoc多型)。亦與C+不同,但和Java相同,Objective-C只容許對象繼承一個(gè)類別(不設(shè)多重繼承)。Categories和protocols不但可以提供很多多重繼承的好處,而且沒有很多缺點(diǎn),例如額外執(zhí)行時(shí)間過重和二進(jìn)制不兼容。由于Obj-C使用動態(tài)運(yùn)行時(shí)類型,而且所有的方法都是函數(shù)調(diào)用(有時(shí)甚至連系統(tǒng)調(diào)用(sys

35、calls)也如此),很多常見的編譯時(shí)性能優(yōu)化方法都不能應(yīng)用于Obj-C(例如:內(nèi)聯(lián)函數(shù)、常數(shù)傳播、交互式優(yōu)化、純量取代與聚集等)。這使得Obj-C性能劣于類似的對象抽象語言(如C+)。不過Obj-C擁護(hù)者認(rèn)為既然Obj-C運(yùn)行時(shí)消耗較大,Obj-C本來就不應(yīng)應(yīng)用于C+或Java常見的底層抽象。Objective-C簡明教程前言開始學(xué)習(xí)前,假設(shè)你已經(jīng)具備了一些C語言的基礎(chǔ)知識,包括變量類型、函數(shù)、返回值、以及指針的相關(guān)概念。如果對這些還不了解,建議首先學(xué)習(xí)譚浩強(qiáng)的C程序設(shè)計(jì)。Objective-C,是 C 的衍生體,繼承了所有 C 語言的特性。是有一些例外,但是它們不是繼承于 C 的語言特性本

36、身。nil:在 C/C+ 你或許曾使用過 NULL,而在 Objective-C 中則是 nil。不同之處是你可以傳遞訊息給 nil(例如 nil message;),這是完全合法的,然而你卻不能對 NULL 如法炮制。BOOL:C 沒有正式的布爾類型,而在 Objective-C 中也不是真的有。它是包含在 Foundation classes(基本類別庫)中(即 import NSObject.h;nil 也是包括在這個(gè)標(biāo)頭檔內(nèi))。BOOL 在 Objective-C 中有兩種型態(tài):YES 或 NO,而不是 TRUE 或 FALSE。#import vs #include:就如同你在 he

37、llo world 范例中看到的,我們使用了 #import。#import 由 gcc 編譯器支援。我并不建議使用 #include,#import 基本上跟 .h 檔頭尾的 #ifndef #define #endif 相同。許多程式員們都同意,使用這些東西這是十分愚蠢的。無論如何,使用 #import 就對了。這樣不但可以避免麻煩,而且萬一有一天 gcc 把它拿掉了,將會有足夠的 Objective-C 程式員可以堅(jiān)持保留它或是將它放回來。偷偷告訴你,Apple 在它們官方的程式碼中也使用了 #import。所以萬一有一天這種事真的發(fā)生,不難預(yù)料 Apple 將會提供一個(gè)支援 #impo

38、rt 的 gcc 分支版本。 Objective-C 中, method 及 message 這兩個(gè)字是可以互換的。不過 messages 擁有特別的特性,具體區(qū)別在后面介紹。編譯 hello world1.hello.m2.3.#import 4.5.int main( int argc, const char *argv ) 6. 7.printf( hello worldn );8.9.return 0; 10.11.輸出hello world 在 Objective-C 中使用 #import 代替 #include Objective-C 的預(yù)設(shè)副檔名是 .m創(chuàng)建 classeinterface基于 Program

溫馨提示

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

最新文檔

評論

0/150

提交評論