Five reasons for developing iOS apps using MonoTouch instead of Objective-C

Source: Internet
Author: User

Bartek shared in his article five reasons for using MonoTouch to build iOS apps:

1. C # has GC. In Objective-C, you need to always pay attention to the retain/release/dealloc method, but C # does not. Note: The Objective-C language itself has GC, but it is not enabled on iOS. In addition, if ARC is added to XCode 4.2, the reference count memory can be automatically managed, which does not exist)

2. You do not need to declare the function in the header file in C #, and then implement it in. cpp/. m/. mm. Although private methods in Objective-C do not need to be declared in. h, they must be declared using interfaces in the implementation file. Compared with Objective-C, anonymous delegate, lamada, and blocks are much more convenient.

3. the. Net platform has more support libraries, such as WCF Services, Web Services, JSON, and SQL Lite APIs.

4.. Net supports Linq. The author believes that it is a killer feature for apps with complicated business logic.

5.. Net supports generics.

The author is using Cocos2D and Objective-C to develop the game, but suggests that Mono Touch be used for a new project.

For games using Unity, the script is based on Mono, and I do think c # is very convenient to write the game script, however, this is because I am not familiar with Objective-C and it is difficult to write a simple plugin. Therefore, I agree that C # is a good choice.

In addition, Corona & lua can be used as an alternative for games.

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.