net程序员的iPhone开发-MonoTouch

net程序员的iPhone开发-MonoTouch,第1张

概述net程序员的iPhone开发-MonoTouch iPhone软件的Native开发除了使用Apple推荐的Objective-C  Cocoa之外,也有其他的一些工具和SDK提供 基于WEB的形式的一些框架在下面这个文章介绍过 各种SmartPhone上的跨平台开源框架的总结 http://www.cnblogs.com/2018/archive/2010/12/28/1918814.html @H_403_4@

net程序员的iPhone开发-Monotouch

iPhone软件的Native开发除了使用Apple推荐的Objective-C  Cocoa之外,也有其他的一些工具和SDK提供

基于WEB的形式的一些框架在下面这个文章介绍过

各种SmartPhone上的跨平台开源框架的总结

http://www.cnblogs.com/2018/archive/2010/12/28/1918814.html

 

对于.net人员来说,使用C#语言也可以进行开发,这就是Monotouch

monotouch

2009年Novell开始的项目

通过Monotouch,使用C#语言实现可以在iPhone上发布和销售的软件

Monotouch免费版本只能在模拟器中开发调试和测试,在iPhone设备和app store上必须购买授权。http://monotouch.net/DownloadTrial

开发环境准备

 1. Make sure you have your Intel Mac running at least version 10.5.7

  2. Download and install the Mono framework: www.go-mono.com/mono-downloads/download.HTML.

  3. Download and install Monotouch: http://monotouch.net/

  4. Download and install MonoDevelop: http://monodevelop.com/Download

  5. Download and install the iPhone SDK: www.apple.com/downloads/macosx/development_tools/iphonesdk.html.

安装好以上的工具后就可以使用MonoDevelop进行开发了

Monotouch 组件和类库

Monotouch is made up of the following four components:

The  Monotouch.dll is a C# assembly that provIDes a binding API into the iPhone’s native APIs. A command-line tool that compiles C# and Common Intermediate Language (CIL) code. This compiled code can then be run in the simulator or an actual iPhone. An add-in to MonoDevelop that allows for iPhone development and for Interface Builder to create graphical applications. A commercial license of the Mono runtime,which allows for the static linking of the Mono runtime with the code developed.

最常用的命名空间

Monotouch.ObjCRuntime: This namespace provIDes the interop/brIDge between the .NET/C# world and the Objective-C world of the iPhone. Monotouch.Foundation: This namespace provIDes support for the data types necessary to communicate with the Objective-C world of the iPhone. Most types are directly mapped. For example,the NSObject Objective-C base class is mapped to the Monotouch.Foundation .NSObject class in C#. Some classes are not directly mapped and are instead mapped to their native .NET types. For example,Nsstring maps to the basic string type and NSArray maps to a strongly typed array. Monotouch.UIKit: This namespace provIDes a direct mapPing between the UI components within Cocoa touch. The mapPing is done by provIDing .NET classes for each UI component,and this is the namespace that developers will likely spend most of their time working with. For .NET developers,Cocoa touch is an abstraction layer or API for building programs that run in the iPhone. Cocoa touch is based on the Cocoa API used in building programs that run on the Mac OS X operating system. Cocoa touch can be thought of as Cocoa tuned for the touch-based iPhone operating system. OpenTK: This namespace is a modifIEd version of the OpenTK API. OpenTK is an objectorIEnted binding for OpenGL,which stands for the Open Graphics library. OpenGL is an API for using three-dimensional graphics. OpenTK is a library for performing OpenGL,OpenAL,and OpenCL. It is written in C# and runs on windows,Mac OS X,and linux. The OpenTK implementation on the iPhone has been updated to use CoreGraphics and to only expose the functionality available on the iPhone. @H_403_4@ @H_403_4@ @H_403_4@ @H_403_4@ @H_403_4@ 总结

以上是内存溢出为你收集整理的net程序员的iPhone开发-MonoTouch全部内容,希望文章能够帮你解决net程序员的iPhone开发-MonoTouch所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1067684.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存