Top Banner
Craig Dunn Developer Evangelist Xamarin [email protected] @conceptdev iOS with C# using Xamarin
24

Introduction to iOS with C# using Xamarin

May 10, 2015

Download

Technology

Craig Dunn

Presented at NDC Oslo, 14th June 2013.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 2: Introduction to iOS with C# using Xamarin

Why Xamarin.iOS?

• Write C# apps for iPhone, iPad and iPod• Share C# with other platforms:

Xamarin.AndroidWindows PhoneWindows Store Appsre-use C# from existing projects

• Create native iOS user interface• Native app == native performance• Entire iOS SDK directly accessible (StoreKit, iCloud, etc)• You can add your own Objective-C libraries too

aka Why Are You Here?

Page 3: Introduction to iOS with C# using Xamarin

How Does it Work?

• Mono C# + .NET implementation for Linuxstarted in 2001/released 2004perfect fit for today’s mobile platforms: iOS & Android

• “Bindings”exposes iOS as C#you can write your own to incorporate any Objective-C

• Compilerproduces native ARM binarycan link out unused code

Page 4: Introduction to iOS with C# using Xamarin

How Does it Work?

Page 5: Introduction to iOS with C# using Xamarin

Xamarin Installer

• Simple unified installerhttp://xamarin.com/download

• You need to install Apple’s Xcode (& join their developer program)http://developer.apple.com/ios

Page 6: Introduction to iOS with C# using Xamarin

Mac OS X WindowsWindows

IDE

iOS

Android

Windows Phone

Development Environment Support

XamarinBusiness Edition+

Mac+

Page 7: Introduction to iOS with C# using Xamarin

Mac OS XWindows

Visual Studio Xamarin Build Host

Xamarin.iOS for Visual Studio plug-in

Build Host configurationiOS Projects

iOS Property PagesiOS build, deploy, debug

iOS Output panes

Device iOS Simulator

Apple iOS SDKXcode

Interface BuilderCompiler

Keychain CertificationsProvisioning Profiles

Networkaccess

iOS appsin Visual Studio?!

Page 8: Introduction to iOS with C# using Xamarin

iOS Development Environment

Xamarin Studio

Visual Studio

Page 9: Introduction to iOS with C# using Xamarin

iOS UI Designer

Xcode - now

Xamarin Designer - alpha

Page 10: Introduction to iOS with C# using Xamarin

iOS Development Environment

• Code signing• App configuration• Deployment

Keychain - certificates

Page 11: Introduction to iOS with C# using Xamarin

iOS Development Environment

• Code signing• App configuration• Deployment

Provisioning Portalhttp://developer.apple.com

Page 12: Introduction to iOS with C# using Xamarin

iOS Development Environment

• Code signing• App configuration• Deployment

Page 13: Introduction to iOS with C# using Xamarin

DEMO

Page 14: Introduction to iOS with C# using Xamarin

DEMO

Page 15: Introduction to iOS with C# using Xamarin
Page 16: Introduction to iOS with C# using Xamarin

SHARE

Components

Code

‘Structure’

Design

Page 17: Introduction to iOS with C# using Xamarin

SHARE

Page 18: Introduction to iOS with C# using Xamarin

Recap

• Build iOS apps in C# with .NET• Use Xamarin Studio or Visual Studio• Apps have native look and feel• Apps are native, with native performance• Share code• Component Store

http://components.xamarin.com

Page 19: Introduction to iOS with C# using Xamarin

What’s Next?

• async/await• F#• Portable Class Libraries (PCL)• Xamarin.iOS Designer• iOS7...

Page 20: Introduction to iOS with C# using Xamarin

What’s Next?async/await

Page 21: Introduction to iOS with C# using Xamarin

What’s Next?Xamarin iOS UI Designer

Page 22: Introduction to iOS with C# using Xamarin

Go!• 10 minute guide to building an app

http://xamarin.com/getting-started • Docs, Recipes

http://docs.xamarin.com/• Forums

http://forums.xamarin.com• Samples

http://github.com/xamarin

http://xamarin.com/download

Page 23: Introduction to iOS with C# using Xamarin

Q&A