版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、本科毕业设计(论文)题目:基于ios移动终端数据查询与流媒体设计与实现院(系) 计算机科学与工程学院 专 业 软件工程 班 级 姓 名 学 号 导 师 2014年 6月本科毕业设计(论文)题目:基于ios移动终端数据查询与流媒体设计与实现院(系) 计算机科学与工程学院 专 业 软件工程 班 级 姓 名 学 号 导 师 2014年 6月西安工业大学毕业设计(论文)任务书院(系)计算机科学与工程学院专业软件工程 6姓名学号1.毕业设计(论文)题目: 基于ios移动终端数据查询与流媒体设计与实现 2.题目背景和意义:方便用户查询相关信息 3.设计(论文)的主要内容(理工科含技术指标):本课题要求学生
2、通过复习相关课程内容;阅读有关资料,应用网络编程技术设计网上音像商城;总结毕业设计并写出论文;并通过外文资料翻译等环节的实践得到综合的工程训练。 网上音像商城分为五个大的模块: 1、游戏新闻查看; 2、游戏人物查看; 3、游戏装备查看; 4、游戏周边推荐; 4.设计的基本要求及进度安排(含起始时间、设计地点):毕业设计在大四第二学期1-18周于校内进行,其具体安排如下: 1.准备阶段(第一周-第二周):了解课题,搜集相关资料,进行开题。 2.系统分析阶段(第三周-第四周):确定总体设计方案,相关实现的算法设计。 3.模块编写阶段(第五周-第十周):具体算法的实现。 4.总体实现及测试阶段(第十
3、一周-第十四周):完成相应的代码编写,实现所有的功能,进行总体测试,使之完全达到设计要求。 5.写毕业论文,准备毕业答辩(第十五周-第十八周)。 5.毕业设计(论文)的工作量要求 毕业论文不少于15000字 实验(时数)*或实习(天数): 600机时 图纸(幅面和张数)*: 其他要求: 指导教师签名: 年 月 日学生签名: 年 月 日 系(教研室)主任审批: 年 月 日说明:1本表一式二份,一份由学生装订入附件册,一份教师自留。毕I-22 带*项可根据学科特点选填。毕I-2 附 录毕业设计(论文)外文资料翻译院 (系): 计算机科学与工程学院 专 业: 软件工程 学 生: 吴潘 学 号: 10
4、0606119 指导教师: 杨国梁 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,是扩充C的面向对象编程语言。它主要使用于Mac OS Objective-C,通常写作ObjC和较少用的Objective C或Obj-C,是在C的基础上,加入面向对象特性扩充而成的编程语言。目前,Objective-C主要应用于Mac OS X和iOS这两个NeXTSTEP的衍生系统,而在NeXTSTEP和OpenStep中它更是基本语言。Objective
31、-C语言历史1980年代初,布莱德确斯(Brad Cox)在其公司Stepstone发明Objective-C,它以一种叫做SmallTalk-80的语言为基础。Objective-C建立在C语言之上,意味着它是在C语言基础上添加了扩展而创造出来的能够创建和操作对象的一门新的程序设计语言。对Objective-C最主要的描述是他1986年出版的Object-oriented Programming, An Evolutionary Approach。1988年,NeXT Software公司获得了Objective-C语言的授权,并开发出了Objective-C的语言库和一个名为NEXTSTE
32、P的开发环境。1992年,自由软件基金会的GNU开发环境增加了对Objective-C的支持。1994年,NeXT Computer公司和升阳微系统(Sun Microsystem)联合发布了一个针对NEXTSTEP系统的标准典范,名为OPENSTEP。OPENSTEP在自由软件基金会的实现名称为GNUStep。1996年12月20日,苹果公司宣布收购NeXT Software公司,NEXTSTEP/OPENSTEP环境成为苹果操作系统下一个主要发行版本OS X的基础,这个开发环境的该版本被苹果公司称为Cocoa。Objective-C语言优缺点Apple在其Mac OS X 10.3中仍未引
33、入垃圾回收这个功能。不过令人欣慰的是在Apple发布的xCode4中已经支持自动释放啦,我不敢冒昧地说那是垃圾回收,因为两者机制不同,在xCode4中的自动释放,也就是ARC(Automatic Reference Counting)机制,是不需要用户手动去Release一个对象,而是在编译期间,编译器会自动帮你添加那些以前你经常写的NSObject release。另一个问题是ObjC不包括命名空间机制(namespace mechanism)。取而代之的是程序设计师必须在其类别名称加上前缀,时常引致冲突。在2004年,在Cocoa编程环境中,所有Mac OS X类别和函式均有NS作为前缀,
34、例如NSObject或NSButton来清楚分别它们属于Mac OS X核心;使用NS是由于这些类别的名称在NeXTSTEP开发时定下。虽然Objective-C是C的母集,但它也不视C的基本型别为第一级的对象。和C+不同,Objective-C不支援运算子多载(它不支持ad-hoc多型)。亦与C+不同,但和Java相同,Objective-C只容许对象继承一个类别(不设多重继承)。Categories和protocols不但可以提供很多多重继承的好处,而且没有很多缺点,例如额外执行时间过重和二进制不兼容。由于Obj-C使用动态运行时类型,而且所有的方法都是函数调用(有时甚至连系统调用(sys
35、calls)也如此),很多常见的编译时性能优化方法都不能应用于Obj-C(例如:内联函数、常数传播、交互式优化、纯量取代与聚集等)。这使得Obj-C性能劣于类似的对象抽象语言(如C+)。不过Obj-C拥护者认为既然Obj-C运行时消耗较大,Obj-C本来就不应应用于C+或Java常见的底层抽象。Objective-C简明教程前言开始学习前,假设你已经具备了一些C语言的基础知识,包括变量类型、函数、返回值、以及指针的相关概念。如果对这些还不了解,建议首先学习谭浩强的C程序设计。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 也是包括在这个标头档内)。BOOL 在 Objective-C 中有两种型态:YES 或 NO,而不是 TRUE 或 FALSE。#import vs #include:就如同你在 he
37、llo world 范例中看到的,我们使用了 #import。#import 由 gcc 编译器支援。我并不建议使用 #include,#import 基本上跟 .h 档头尾的 #ifndef #define #endif 相同。许多程式员们都同意,使用这些东西这是十分愚蠢的。无论如何,使用 #import 就对了。这样不但可以避免麻烦,而且万一有一天 gcc 把它拿掉了,将会有足够的 Objective-C 程式员可以坚持保留它或是将它放回来。偷偷告诉你,Apple 在它们官方的程式码中也使用了 #import。所以万一有一天这种事真的发生,不难预料 Apple 将会提供一个支援 #impo
38、rt 的 gcc 分支版本。 Objective-C 中, method 及 message 这两个字是可以互换的。不过 messages 拥有特别的特性,具体区别在后面介绍。编译 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 的预设副档名是 .m创建 classeinterface基于 Program
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026国家税务总局河南省税务局招聘事业单位工作人员70人考试模拟试题及答案解析
- 2026年蚌埠市环境系统事业单位人员招聘考试备考试题及答案详解
- 2026四川省达州市“达人英才计划”上半年引才688人笔试参考题库及答案解析
- 2026年德阳市水利系统事业单位人员招聘考试备考试题及答案详解
- 2026年阿拉善市法院书记员招聘考试备考试题及答案详解
- 2026广西百色田东县招聘中小学校安全协管员30人考试参考题库及答案解析
- 2026年吊顶装修建材行业分析报告及未来发展趋势报告
- 2026江苏苏州电瓷厂股份有限公司招聘12人考试备考题库及答案解析
- 2026年集装箱港口行业分析报告及未来发展趋势报告
- 2026年金属铸加工行业分析报告及未来发展趋势报告
- 苏科版七年级数学下册期末核心考点练习卷(含解析)
- 实测实量仪器操作使用专题培训
- 数字电子技术课件 3.4.2.1二进制译码器
- 2025年全国统一高考数学试卷(全国一卷)含答案
- 江苏省徐州市2024-2025学年高二下学期期中考试地理试卷(含答案)
- JG/T 293-2010压铸铝合金散热器
- 热力发电厂模拟试题+答案(附解析)
- 幼儿军事活动协议书
- 注射用多黏菌素E甲磺酸钠-药品临床应用解读
- 儿童阅读发展的性别差异-性别刻板印象和言语认知技能的作用及其机制
- TWHQC 1-2024 TCSTE 0667-2024 质量分级及“领跑者”评价要求 电动越野乘用车
评论
0/150
提交评论