6. Covering...
• How these technologies work
• Demos
• Similarities between MonoTouch and Mono
for Android
• Code Re-use with MonoTouch, Mono for
Android and Windows Phone 7
19. Garbage Collection
• Automatic:
• Mono’s GC will collect objects on demand
• Deterministic:
• Use when you need control.
• Every object in MonoTouch implements IDisposable
using (var image = UIImage.FromFile(“foo.png”)){
surface.DrawImage(image, 20, 20);
}
20. MonoTouch Design
Integration
• Integrates with Interface Builder and Xcode
3
• Xcode 4 support coming
23. Learn to read Objective-C
• All Apple documentation is in Obj-C
• Most examples are in Obj-C
• It’s not too hard to understand
• It might even be fun...
24. The Bindings
• MonoTouch namespace
• MonoTouch.Foo namespace
• Maps to CocoaTouch’s Foo Framework
• 1:1 Mapping of classes.
• MonoTouch.UIKit.UILabel
• CocoaTouch’s UIKit framework, UILabel
class
25. Binding against 3rd
party libraries
• https://github.com/chrisntr/monotouch-
bindings/tree/master/BingMaps
• Demo showing Bing iOS control in
MonoTouch
27. Getting started
• Get iPhone SDK from Apple
• Get Mono from Novell
• Get MonoTouch (evaluation version is free)
• Get MonoDevelop
• Register with Apple iPhone Developer
Program and purchase MonoTouch for
putting apps on device and AppStore.
34. MonoDroid Features
• mandroid.exe
• Visual Studio 2010 Integration
• MonoDevelop MonoDroid Add-In
• Mono.Android.dll
• Full static AOT compiler and JIT support
• Support for all your existing code
• Reflection
• Generics
• LINQ
• Anonymous Methods
• Lambda’s etc...