Thanks to Geoff Norton and Miguel De Icaza for the basis of most of the slides. My MonoTouch session from the 5th UGIAlt.Net Conference in Milan on 23rd January 2010.
7. 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...
16. 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
17. Strong Types
• Objective-C
• Arrays are weakly typed:
• NSArray return values.
• MonoTouch has strong types
• UIView[] Subviews { get; }
• vs
• NSArray *subviews;
• Intellisense - explore the API...
18. 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);
}
23. Pipeline
• Interface Builder GUI Designer
• Exact same tool used by Xcode
• Support for existing Xcode interfaces
• MonoDevelop IDE
24. Integration
• Tight integration between MD and IB
• IB produces XIBs with MD parses
• Automatic class generation in MD
• Generates partial classes for all types,
outlets and actions defined in Interface
Builder
26. Actions
• Objects emit broadcast messages to
receivers
• You can do this C#
• MonoDevelop takes care of the details for
you
• Creates partial methods for you extend
29. Well...
• MonoTouch released around 15th
September 2009
• MonoTouch 1.1 on 2nd October 2009
• MonoTouch 1.2 (Beta) released on 28th
October 2009... With Debugging support
• Currently on MonoTouch 1.4.5
30. Debugger
• MonoTouch debugger leverages Mono’s
new Soft-Debugger
• Supports the Simulator
• Supports the Device...
• even over WiFi
32. Caveats
• Debug binaries on devices are very large
• Cannot debug Main or FinishedLaunching
on device
• Consumes more memory runtime
• Performance hit
33. 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.
Good afternoon, I’m going to talk a little bit about C# on the iPhone with Monotouch. I’m Chris Hardy and you go follow me on twitter @ chrisntr.
Good afternoon, I’m going to talk a little bit about C# on the iPhone with Monotouch. I’m Chris Hardy and you go follow me on twitter @ chrisntr.
I work for a company called Great Fridays and we’re mainly a web design agency working for people such as Ubisoft, Peter Gabriel and Emma Watson
I work for a company called Great Fridays and we’re mainly a web design agency working for people such as Ubisoft, Peter Gabriel and Emma Watson
I work for a company called Great Fridays and we’re mainly a web design agency working for people such as Ubisoft, Peter Gabriel and Emma Watson
I work for a company called Great Fridays and we’re mainly a web design agency working for people such as Ubisoft, Peter Gabriel and Emma Watson
This session I will be covering and hopefully answering some of your question on...
What is Monotouch...
How does it work...
Why would you use it...
and I’ll also show a demo or two on using MonoTouch
This session I will be covering and hopefully answering some of your question on...
What is Monotouch...
How does it work...
Why would you use it...
and I’ll also show a demo or two on using MonoTouch
This session I will be covering and hopefully answering some of your question on...
What is Monotouch...
How does it work...
Why would you use it...
and I’ll also show a demo or two on using MonoTouch
This session I will be covering and hopefully answering some of your question on...
What is Monotouch...
How does it work...
Why would you use it...
and I’ll also show a demo or two on using MonoTouch
This session I will be covering and hopefully answering some of your question on...
What is Monotouch...
How does it work...
Why would you use it...
and I’ll also show a demo or two on using MonoTouch
In the summer I thought I&#x2019;d have a go at iPhone programming, it&#x2019;s fun and it&#x2019;s enjoyable and it also involves... </next slide>
using Objective C and Xcode... this lead me to learn objective-c... which was hard coming from a PHP/Web background. Constant errors and manually hacking at SOAP requests was not much fun... XCode on the other hand was really nice although there is no concept of a project folder...
So, what is MonoTouch? First of all we should ask a different question.
The CIL (Common Intermediate Language) / Assembley is sent to Mono at Runtime and executed directly in memory...
The CIL (Common Intermediate Language) / Assembley is sent to Mono at Runtime and executed directly in memory...