Iphone Development Study Note 3

Source: Internet
Author: User

After a period of study and reading the documentation, I have a basic understanding of Mac OS and Objective C. I am going to learn how to develop the iphone. In the selection of development tools, I have repeatedly used MonoTouch to select XCode + Objective C. After fierce psychological struggles, I finally chose both of them. my goal is to port the map development kit to iPhone (iOS) and Mac OS. The original code is Java and C #. It seems that MonoTouch is the right choice, and in fact. on the Net platform, the C # code basically does not need to be modified and compiled in MonoTouch. The porting workload is very small and it does not seem challenging. In addition, after several weeks of Objective C and Cocoa Touch learning, XCode + Objecitve C is really not a good development environment for developers. Objective C is essentially C, it's not a habit to write code in C again, and the pointer is back again...
However, MonoTouch does not have much work, and therefore does not have a deep understanding of iOS. In addition, MonoTouch has two major disadvantages: First, it has a large number of executable programs after compilation, iphone does not contain. net runtime environment, the MonoTouch compiled program needs to include the MonoTouch runtime environment. I found a piece of information on the Internet, a simple "Hello world", written in Objective C, and finally about 50 k, monoTouch is about 5 M. another drawback may be fatal, not technically but from Apple restrictions. In the new developer protocol, Apple explicitly states that only C, C ++ can write programs on the iphone, objective C or JavaScripts is a little abnormal. Although it is difficult for Apple to enforce this policy, it is still a great risk for developing iphone 4 with MonoTouch. In the end, I decided to support both of them. In fact, it mainly supports Objective C interfaces. The MonoTouch interface supports a small amount of work.
Next we will talk about the workload of transplantation. In the subsequent articles, we will introduce the Problems and Solutions encountered during transplantation. C # and Objective C are two very different languages ,. net Framework and Cocoa Touch Framework are also very different. Porting is a very challenging task :).
Is the relationship between the packages of the Web tracking bee map development kit. Green indicates the APIs that are open to the outside world.
The Platform APIs used involve String, Collections (Array, Hashtable etc) (Util), Network (Http etc), Ajax (Json), file operations (RMS ), encryption and decryption (Crypto), two-dimensional graphics (Drawing), and finally the geographic information system (GIS ).
These platform APIs have different implementations in. Net Framework and Cocoa Touch. C # and Objective C have different syntaxes, which increase the workload for porting. This article will be introduced later.

 

 





Excerpted from the mobile app

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.