Introduction to iOS with C# using Xamarin

860 views

Published on

Presented at NDC Oslo, 14th June 2013.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
860
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
32
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Introduction to iOS with C# using Xamarin

  1. 1. iOS with C# using Xamarin Craig Dunn Developer Evangelist Xamarin craig@xamarin.com @conceptdev
  2. 2. Why Xamarin.iOS? aka Why Are You Here? • Write C# apps for iPhone, iPad and iPod • Share C# with other platforms: Xamarin.Android Windows Phone Windows Store Apps • • • • re-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
  3. 3. How Does it Work? • Mono C# + .NET implementation for Linux started in 2001/released 2004 perfect fit for today’s mobile platforms: iOS & Android • “Bindings” exposes iOS as C# you can write your own to incorporate any Objective-C • Compiler produces native ARM binary can link out unused code
  4. 4. How Does it Work?
  5. 5. Xamarin Installer • Simple unified installer http://xamarin.com/download • You need to install Apple’s Xcode (& join their developer program) http://developer.apple.com/ios
  6. 6. Development Environment Support Mac OS X IDE iOS Android Windows Phone Windows + Xamarin Business Edition + Mac
  7. 7. Mac OS X Windows iOS apps in Visual Studio?! Visual Studio Xamarin.iOS for Visual Studio plug-in Build Host configuration iOS Projects iOS Property Pages iOS build, deploy, debug iOS Output panes Network access Xamarin Build Host Apple iOS SDK Xcode Interface Builder Compiler Keychain Certifications Provisioning Profiles Device iOS Simulator
  8. 8. iOS Development Environment Visual Studio Xamarin Studio
  9. 9. iOS UI Designer Xamarin Designer - alpha Xcode - now
  10. 10. iOS Development Environment • Code signing • App configuration • Deployment Keychain - certificates
  11. 11. iOS Development Environment • Code signing • App configuration • Deployment Provisioning Portal http://developer.apple.com
  12. 12. iOS Development Environment • Code signing • App configuration • Deployment
  13. 13. DEMO
  14. 14. DEMO
  15. 15. SHARE Components Code ‘Structure’ Design
  16. 16. SHARE
  17. 17. 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
  18. 18. What’s Next? • • • • • async/await F# Portable Class Libraries (PCL) Xamarin.iOS Designer iOS7...
  19. 19. What’s Next? async/await
  20. 20. Xamarin iOS UI Designer What’s Next?
  21. 21. 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
  22. 22. Q&A
  23. 23. Craig Dunn Developer Evangelist Xamarin craig@xamarin.com @conceptdev THANK YOU

×