Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many...

32
Writing iOS Mapping Apps in .NET C# Al Pascual

Transcript of Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many...

Page 1: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Writing iOS Mapping Apps in .NET C#

Al Pascual

Page 2: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Where is my Mac today?

Page 3: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Who are you?

• How many people develop in Objective-C• How many people use MonoTouch?• How many people develop for iPhone?• How many people develop for mobile?• How many people developer iPhone in HTML5?

Page 4: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

How to create a map using Objective-C

[MapView release];

Page 5: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create
Page 6: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Objective – C Controllers

Page 7: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Adding a Map in Objective-C

Page 8: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Add a Feature Service Layer

Page 9: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Zoom to Extent

Page 10: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create
Page 11: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Objective – C Map Viewer

Page 12: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

MapView *mapview =[[MapView alloc] init]

Was that easy?

Page 13: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

How to create a map in MonoTouch

Page 14: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

What’s MonoTouch?

• MonoTouch allows developers to create C# and .NETbased applications that run on Apple's iPhone,

iPad,and iPod Touch devices, while taking advantage ofthe iPhone APIs and reusing both code

and librariesthat have been built for .NET, as well as existing skills.

Page 16: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Why is important to me?

• Performance• Mono Android is here too • Productivity• If you are a .NET developer• Garbage Collection

Page 17: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create
Page 18: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Libraries in .NET using UIKit

Page 19: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

NameSpaces a la .NET

Page 20: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

How to display a map in MonoTouch

Page 21: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

MonoTouch - Map Viewer

Page 22: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Difference?

• Same library

• Links to objective – c

• Approved by Apple

• Same User Interface Cocoa

Page 23: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Where to start

• Learn the steps:- http://alpascual.com/post/2010/08/03/How-to-use-the-

ArcGIS-iPhone-SDK-with-MonoTouch.aspx

• Download iOS ArcGIS library- http://help.arcgis.com/en/arcgismobile/10.0/apis/iPhone

• Download the code- http://www.arcgis.com/home/item.html?id=4d292f8a378b

4a3ca67178974d9eeed3

• Download MonoDevelop- http://monotouch.net/

Page 24: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

In the resource center

Page 25: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Common Questions

• Do I need a Mac to use MonoTouch?- YES

• What .NET features does MonoTouch support?- 3.5 ( so LINQ)

• Does MonoTouch support Visual Basic?- NO just (C#)

• How much $$$- Student $99- Personal $399- Enterprise $999

Page 26: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

A few apps in the App Store Created in MonoTouch.

Page 27: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Page 28: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create
Page 29: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Page 30: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Life beyond Cocoa

• Resco MobileTouch Toolkit- iPhone and iPad in a similar model to standard .NET

Compact Framework development

Page 31: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create

Questions?

Page 32: Writing iOS Mapping Apps in .NET C#€¦ · • How many people develop for iPhone? • How many people develop for mobile? • How many people developer iPhone in HTML5? How to create