ArticleDirectory
- Development Environment preparation
- Getting started
- Notes
Development Environment preparation
You can refer to this blog post to get a general understanding of virtual machine environment configuration. As monotouch is about to support xcode 4, the recommended development environment is:
- Install OSX 10.6;
- Install xcode 4 to the/developer directory, so that you can use the compilation tool provided by xcode 4 for compilation;
- Install xcode 3 to the/xcode3 directory, so that you can use the independent interface builder provided by xcode 3;
- Install the latest version of Mono SDK for Mac OSX;
- Install the latest monotouch trial version;
- Install monodevelop for Mac OSX.
Set to open the XIB file using interface Builder by default:
- Find any XIB file;
- Right-click and choose get info;
- Find open with in the info window, Select Interface builder from the drop-down list, and click Change all.
Get started with objective-C
For iOS development, it is essential to have some basic knowledge about obj-C. There are many introductory tutorials on OBJ-C on the Apple developer website.
- For the basic concepts of obj-C, refer to learning objective-C: A primer. It is necessary to master some basic concepts of obj-C, such as interface, selector, delegate, and property, these concepts can be compared with C;
- Based on the tutorial provided by Apple, use xcode to create an IOSProgramTo experience the xcode development process;
- XcodeCodeCan write the corresponding C # code and optimize it according to the features of C;
- The final requirement is to extend the C #. Net skills that have been mastered to the iOS platform.
Start iOS development with monotouch
There are already many tutorials on monotouch, such:
- Using monotouch in Visual Studio to develop IOS applications (below): development experience
- Xamarin official monotouch tutorial
- Monotouch. Info
Notes
Due to the license restrictions of the apple SDK, Mono runs in the AOT mode on iOS platform, instead of the JIT Mode we are familiar with. Therefore, we need to know what the AOT mode is, some dynamically executed code (dynamically compiled lambda expressions, emit, and codedom) cannot be executed.