Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Cross platform mobile development with Xamarin
Search
Marcin Kuptel
June 18, 2015
Programming
28
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Cross platform mobile development with Xamarin
A talk I gave at CocoaHeads Copenhagen in June 2015.
Marcin Kuptel
June 18, 2015
Other Decks in Programming
See All in Programming
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
220
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
Domain-Driven Transformation
hschwentner
2
2.3k
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
290
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
Next.js: The final boss of Web Performance
guaca
0
260
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
150
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
370
Designing Experiences People Love
moore
143
24k
The SEO Collaboration Effect
kristinabergwall1
1
590
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Faster Mobile Websites
deanohume
310
32k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
300
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
750
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
820
Prompt Engineering for Job Search
mfonobong
0
520
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
560
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Odyssey Design
rkendrick25
PRO
2
870
Transcript
CROSS PLATFORM MOBILE DEVELOPMENT WITH XAMARIN MARCIN KUPTEL
None
NOT IDEAL ▸ Double the amount of work ▸ More
developers required ▸ Changes need to be made in multiple places
CAN WE DO BETTER?
None
None
XAMARIN STUDIO
BUT WHAT ABOUT THE UI? ▸ Either use Xamarin Designer
▸ Or stick with Interface Builder!
PROFILING TOOLS ▸ HeapShot - Xamarin's own memory and performance
tool ▸ Xamarin Profiler
C# ▸ generics ▸ lambda expressions ▸ optionals
C# USES GARBAGE COLLECTION
HOW DO C# AND OBJECTIVE C WORK TOGETHER?
GOTCHA NO. 1 UIIMAGE
THE DISPOSE PATTERN
IOS C# ➡ ARM ASSEMBLY ANDROID C# ➡ IL ➡
ASSEMBLY AT RUNTIME
All IOS FRAMWORKS ARE AVAILABLE
... WITH A FEW DIFFERENCES ▸ Strongly typed arrays instead
of NSArray ▸ Delegate methods exposed through events and properties ▸ NSString becomes string
GOTCHA NO. 2 UITableViewDelegate and UITableViewDataSource are classes
THIRD PARTY LIBRARIES ▸ NuGet is a package manager built
into Xamarin Studio ▸ Over 37,000 libraries ▸ Notifies you when a library has been updated ▸ You can easily publish your own
BINDING PROJECTS
API DEFINITION namespace Cocos2D { [BaseType (typeof (NSObject))] interface Camera
{ [Static, Export ("getZEye")] nfloat ZEye { get; } [Export ("restore")] void Restore (); ... } }
SHARING CODE
SHARED PROJECT #if __IOS__ nsDispatcher.BeginInvokeOnMainThread(NotifyListeners); #elif __ANDROID__ Dispatcher.RunOnUiThread(() => NotifyListeners());
#endif
PORTABLE CLASS LIBRARY
OUR PROJECTS
SHARING ASSETS
CONTINUOUS INTEGRATION /Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build “--configuration:Release|iPhone” app/MyAwesomeApp.sln UNFORTUNATELY IT
IS NOT POSSIBLE TO BUILD WITHOUT CODE-SIGNING security unlock-keychain -pPASSWORD ~/Library/Keychains/login.keychain
NUNIT FOR UNIT TESTING [TestFixture] public class LoginViewModelTests { [Test]
public void TestThatLoginViewModelCanBeCreated() { Mock<IAccountApi> mockAccount = new Mock<IAccountApi>(); Mock<IDialogService> dialogServiceMock = new Mock<IDialogService>(); ... Assert.IsNotNull(viewModel); }
THE VERDICT ! Very easy to share code between platforms
! Good support from Xamarin ! Not enough iOS open source projects ! Xamarin Studio issues
THANKS! @MARCINKUPTEL