iOS Samples

AdaptivePhotos

Sample demonstrates how to use new UIKit features introduced in iOS 8.

Adventure

This sample shows how to build a simple 2D game for iOS and OSX using SpriteKit.

AirLocate

AirLocate shows how to use CLLocationManager to monitor and range CLBeaconRegion.

AnalogClock

AnalogClock is a cross platform app displaying a classic clock.

Application Preferences

An example on how to display application preferences in the "Settings" system application.

AQTapDemo

Sample shows how to use the iOS AudioQueue Processing Taps.

AsyncAwait

Cross platform sample for iOS and Android showing image downloads using C# 5's async and await syntax.

AsyncDownloadImage

This app demonstrates how to use the Async/Await feature which is available in Xamarin.iOS 6.4.

Audio Converter File Converter Demo

This sample demonstrates the use of the Audio Converter API.

Audio Queue Offline Render Demo

An example demonstrating the Audio Queue offline rendering API.

AudioGenerator

Sample shows how to use the low-level AudioToolbox API.

AudioTapProcessor

Using MTAudioProcessingTap with AVFoundation to visualize audio samples.

AV Capture Frames

AVCaptureFrames demonstrates AV Foundation APIs to display a real-time capture from camera.

AV Touch

An example on using AVFoundation on iOS devices.

Background Execution

This sample illustrates how to develop multitasking aware applications in Xamarin.iOS.

Background Location Demo

This is a cross platform sample, which demonstrates how to properly perform location updates while the application is either Active or Backgrounded.

Bluetooth LE Explorer

This is a cross-platform app that demonstrates how to explore Bluetooth LE devices

BoxViewClock

A classic analog clock but realized entirely with BoxView.

Bracket Stripes

This sample shows how to use bracketing API in AVFoundation.

BugSweeper

A familiar game with a new twist.

Button Event Demo

Sample demonstrates how to use a C# event on a button press to run a callback.

ButtonCode

This program demonstrates how to create a Button in code and process events from it.

ButtonTapper3000

Demonstrates the work with Achievements and Leaderboards using GameKit APIs.

ButtonXaml

Demonstrates how to create a Button in XAML and process its events in a code-behind file.

Calendars and Reminders

Illustrates usage of the EventKit framework including Calendars and Reminders.

CCAction Demo

A simple project showing common and custom CCAction implementations.

Chat

This project shows one way of implementing a bubble-chat rendering similar to the iPhone Messages application

Circle Layout

This sample provides an introduction to Collection Views.

ClassHierarchy

Demonstrates a scrollable hierarchy of all Xamarin.Forms classes, structures, and enumerations.

CloudCaptions

This sample shows how to use CloudKit to upload and retrieve CKRecords and associated assets.

CloudKitAtlas

CloudKitAtlas is a sample intended as a quick introduction to CloudKit.

CocosSharp BouncingGame Project for iOS and Android

This is a small, complete game using CocosSharp for iOS and Android. It is the result of working through the the entire Introduction

Coin Time

A small, full Android and iOS platformer built on CocosSharp.

CollectionViewTransition

This sample illustrates how to create a custom transition when navigating between two collection views.

Content Controls

A cross platform sample which that demonstrates the usage of some common content controls.

ConvertedFrogScroller

Enhancing scrollview experience with UIPageViewController, UIScrollView and CATiledLayer.

Core Animation

This sample illustrates how to use core animation in Xamarin.iOS.

Core Location

Sample shows how to retrieve location, orientation, and velocity data using the Core Location API.

Core Telephony Demo

An example showing how to access the users's current call, call center and carrier information.

CoreImage

This sample app demonstrates how to use the image filters from CoreImage Library.

CoreMidiSample

This sample shows the basics of how to probe for the MIDI hardware.

CustomInputStream

This sample illustrates how to derive from NSInputStream and create subclass bridged to CFReadStream.

CustomPropertyAnimation

This sample illustrates how to animate custom properties in a CALayer.

Data Access

This sample illustrates how to use the built in SQLite functionality in iOS.

Dispatch Source Examples

Coordination of specific low-level system events.

DocPicker

DocPicker is a sample intended as a quick introduction to using the document Picker in iOS.

Drawing Models in MonoGame

This is a small demo game using MonoGame for iOS and Android, using a shared code project. It is the result of working through the the

Drawing with CoreGraphics

This sample illustrates how to use Core Graphics in Xamarin.iOS.

Drawing with Vertices in MonoGame

This is a small demo game using MonoGame for iOS and Android, using a shared code project. It is the result of working through the the

Drawing with Vertices in MonoGame

This is a small demo game using MonoGame for iOS and Android, using a shared code project. It is the result of working through the the

Dynamic Launch Screens

This sample shows how to make Dynamic Launch Screens using a special type of Storyboard for iOS apps.

Embedded Resource

Demonstrates how to load a resource that has been built into the assembly.

Employee Directory

This is a Xamarin.Forms port of the pre-built sample app Employee Directory.

File System

This sample application demonstrates how to use the file system in iOS.

Fit: Store and Retrieve HealthKit Data

Fit is a sample intended as a quick introduction to HealthKit.

Font Example

Lists the fonts available on the device and shows a preview of each font.

Footprint

Display device location on a floorplan image using Core Location.

FormsGallery

This program displays all the views, cells, layouts, and pages available in Xamarin.Forms, one per page.

FSSceneKit City

This F# sample shows how to create a randomly generated city using Scene Kit.

GameCenterSample

A sample demonstrating how to enable Game Center support.

Gesture Recognizers

An example on how to handle touches to move multiple objects.

GL Textured Cube

Demonstrates a fractal rotating cube rendered with textures via OpenTK's GL APIs.

GLCameraRipple

Shows how to use GLKit to render OpenGL frames and AVFoundation to capture video from camera.

GPS Watch

The sample shows how communicate directly with your containing iOS App.

Graphics and Animations

Drawing and Animation with Core Animation and Core Graphics.

GridLayoutDemo

This sample demonstrates how to display various UI elements in a grid.

Handling Rotation

Shows how to handle user-interface layout changes when device is rotated.

Hello Goodbye

This project shows you how to use the Accessibility API to widen your user base.

Hello iPad

This is a simple hello world application for iPad.

Hello Multi-Screen iPhone

This sample serves as an introduction to the primary pattern used in iOS for user interfaces: MVC.

Hello World: iPhone

A simple hello world sample demonstrating the use of the UIButton and UILabel controls.

Hello, Complex Universal

Sample shows how to create universal applications that will run on both iPhone and iPad.

Hello, iOS

This introductory sample introduces the concepts from the Getting Started guides

Hello, Universal

Sample demonstrating how to create universal applications that will run on both iPhone and iPad.

HomeKitIntro

This app demonstrates how to use the HomeKit to write home automation apps in Xamarin.iOS.

HTTP Client

An example on using both the .NET and Objective-C classes to send a web requests.

Image Effects

Shows how to create and apply effects to an image using the vImage, Quartz and UIKit.

ImageInverter

This sample code shows how to use an Action extension with a view controller.

ImageProtocol

This sample illustrates how to register a custom NSUrlProtocol.

In-App Purchase Samples

Set of samples intended as a quick introduction to in-app purchases.

Intro to iOS 7

This sample illustrates new features in iOS7.

iPhone Multichannel Mixer test

Show how to build an Audio Unit graph with Multichannel Mixer and RemoteIO unit.

Kannada Keyboard

Kannada Keyboard is a keyboard extension for the iOS.

Keychain

Using Apple's keychain storage for storing information securely within an application.

KeychainTouchID

Demonstrates how to add, delete, update and copy Touch ID items to keychain.

LabelledSections

This sample demonstrates how to create an alphabetically ordered list with labelled sections.

Lazy Table Images

This sample demonstrates how to lazily download images and add them to table.

LineLayout

Sample shows how to implement a document-browser-like-interface as a flow layout subclass.

Lister

Lister is a productivity sample project which includes iOS app and iOS Today extensions app (Widget).

Local Notifications

This sample illustrates how to use local notifications on iOS.

LookInside

Sample shows how to use a custom presentation controller to create a custom view controller presentation.

Low-Level OpenGL Painting

Sample shows how to use the low-level OpenGL classes to create a touch painting application.

Manual Camera Controls

The AVFoundation Framework makes it easier than ever for users to take great photos by allowing for Manual Camera Controls.

Map Callouts Demo

An example of how to use the MapKit framework.

Map Demo

An example of how to use the MapKit framework. This relates to the iOS Maps guide.

MetalBasic3D

This sample is an equivalent for Xcode OpenGL ES template.

MetalImageProcessing

Extends MetalTexturedQuad sample by adding compute encoder.

MetalPerformanceShadersHelloWorld

Demonstrates how easy it is to use the MetalPerformanceShaders framework.

MetalTexturedQuad

Shows how to create a basic textured quad in metal.

MonoCatalog MonoDevelop

A kitchen sink example of common UI elements and APIs used with Xamarin.iOS.

MonoGame WalkingGame Project for iOS and Android

This is a small demo game using MonoGame for iOS and Android, using a shared code project. It is the result of working through the the

MonoTouch BTouch Binding Sample

App shows how to utilize an existing Objective-C library and expose it for use in Xamarin.iOS project.

MonoTouch.Dialog Element Walkthrough

This sample demonstrates how to use the Element API with MonoTouch.Dialog.

MonoTouch.Dialog JSON Walkthrough

This sample demonstrates how to use the JSON API with MonoTouch.Dialog.

MonoTouch.Dialog Reflection API Walkthrough

This sample demonstrates how to use the Reflection API with MonTouch.Dialog.

MotionActivityDemo: Integrating Motion Activity into your app

Example of using data with CoreMotion, MotionActivity and Step Counting APIs.

MotionGraphs

Demonstrates how to use the push method to receive data from Core Motion.

MoviePlayback

MoviePlayback is an example on how to use the MPMoviePlayerController class to play iOS videos.

MultiTasking

A simple cross platform example of using a background thread to perform a long running task.

MusicMotion: Adding Motion Awareness to a Music App

This sample demonstrates best practices for CoreMotion API usage.

NewBox

This sample shows how to сreate Document Provider extensions and work with iCloud storage provider.

Notifications

This sample illustrates how to work notifications with Apple Push Notification Service.

NSZombieApocalypse

A game that demonstrates how to use the UIAccessibility protocol.

OpenGL

A collection of samples for using OpenGL in Xamarin.iOS.

OpenGL Paint using GameView

Demonstrates using iPhoneOSGameView with OpenGL to create a touch painting application.

OpenGLES Sample

A simple example of using OpenGLES in a Xamarin.iOS application.

OpenGLES Sample using GameView

Demonstrates the use of OpenGLES with an iPhoneOSGameView.

OpenGLScroller

This sample demonstrates the usage of OpenGL in a scroll view.

PaintCode Demo

This sample app shows some PaintCode-generated elements.

PassKit Sample

This sample demonstrates how to interact with passes you have issued in Passbook.

PeoplePicker: Picking a Person or Property

Sample demonstrates how to use the Address Book UI people picker.

Phoneword

Demonstrates how to share C# code across iOS, Android, Windows Phone 7, Windows 8.

Phoneword

This sample demonstrates sharing C# code across platforms using Xamarin.Forms.

Phoneword Multiscreen

This sample demonstrates adding simple page navigation to the Phoneword app using Xamarin.Forms.

Photo Filter

App extension sample showing you how to implement a Photo Editing extension.

Photo Handoff

Demonstrates how to use Handoff technology.

PhotoProgress: Using NSProgress

Demonstrates how to create and compose NSProgress objects, and show their progress in UI.

PinchIt

This sample provides an introduction to Collection Views and illustrates the use of a flow layout.

Poker Night Voting

This sample application utilizes the EventKit API to allow a user to create events at specific times.

Popovers

This sample demonstrates proper use of UIPopoverController in iOS.

Print Sample

A simple example of using the UIKit Printing API in a Xamarin.iOS application.

PrintBanner

This Sample demonstrates how to print to a roll-fed AirPrint printer.

PrivacyPrompts

This sample demonstrates how to check and request access to classes in the Privacy Settings.

Protocols, Delegates, and Events

This sample demonstrates how to interact with Objective-C protocols from C#.

QRchestra

Sample detects QR codes and decodes them.

Quartz Sample

A sample of using the Core Graphics capabilities in a Xamarin.iOS application.

QuickContacts

Demonstrates how to use the Address Book UI controllers.

Quotes

This sample application utilizes the legacy string drawing functions and the new attributed string drawing.

Reachability Sample

This sample shows how to find out what kind of connectivity is available.

Recipes and Printing

Sample shows displaying items in a table view, allowing the user to dig into detail pages and view photos.

RegionDefiner

Demonstrates generating GeoJSON coverage files for use with the Maps routing apps API.

RosyWriter

Sample shows how to use AVFoundation to capture video, process video frames.

ScaleAndRotate

Demonstrates how to scale and rotate Xamarin.Forms visual elements.

SceneKit F# "Oculus Thrift" (Google Cardboard) Edition

Extends F# Scene Kit for stereoscopic viewing with Google Cardboard.

SceneKit State of the Union Demo

This application render a 3D environment and presents a series of slides with SceneKit objects.

SceneKit Vehicle Demo

Sample shows how to create simple iOS game with SceneKit.

Search Demo

Demonstrates how to create a master-detail style of application.

SegueCatalog

This sample demonstrates how to use External References to factor your storyboards, how to combine UIStoryboardSegue subclasses with Transition Delegates and Adaptivity, and how to use unwind segues with custom container view controllers.

Share

This is an app extension sample using the Share Extension.

Shared Resources

Demonstrates how to work with various iOS resources.

Simple Collection Views

Shows how to use collection Views in iOS.

Simple Drill-Down

Demonstrates making a table with cells that can be drilled further down to a detailed view.

Simple Text Input Demo

An example showing how to implement a simple text-editing application using Core Text.

SimpleBackgroundTransfer

Simple app that illustrates how to use background transfers.

Single Word Keyboard

Show how to create KeyboardExtension to provide a new keyboard for the system.

Social Framework Demo

This sample demonstrates using the Social Framework in iOS.

Solitaire Encryption (Xamarin.Forms)

Demonstrates the Solitaire encryption algorithm from Neal Stephenson's novel Cryptonomicon.

Sound

Demonstrates recording an AAC file using internal or external recording hardware.

SoZoomy

Shows how to use the AVCaptureDevice APIs to zoom with the camera.

Split View

Sample illustrates how to use the UISplitView control for iPad.

Sprite Kit Hello World

This is the Hello World Sprite kit sample, that ships with iOS 7.

Sprite Kit Physics Collisions

This example demostrates physics and collisions between objects when using Sprite Kit.

Sprite Tour

Demonstrates different features of the SKSpriteNode class.

Standard Controls

This sample application illustrates how to use a number of standard ui controls.

Stars

Provides an introduction to Core Motion by demonstrating how to implement virtual reality.

StateRestoration

Demonstrates a way to present ordered data to users in a grid-like fashion.

Streaming Audio

Sample illustrates how to use AudioFileStream to parse an audio stream and play the audio back.

System Sound

This sample demonstrates playing sound via AudioToolkit.

Tabbed Images

Sample demonstrating basic usage of images.

TabbedPageDemo

Demonstrates the TabbedPage, which allows easy navigation among similar pages.

Table Editing

Sample that demonstrates how to implement swipe-to-delete and edit mode in UITableView.

Table Parts

This sample illustrates the constituent parts of a table.

Table Search with UISearchController

Application that demonstrates how to use UISearchController.

Tables and Lists

Demonstrates the various table and cell styles available out of the box.

Tasky

Demonstrates a cross-platform todo application that allows you to track todo/task items.

Tasky Portable

This version of Tasky uses a Portable Class Library to encapsulate and share code across platforms.

Tasky Pro

Demonstrates proper application architecture layering and using a common code base.

Tasky Pro (Calabash)

This project is an example of how to create cross platform function tests for Xamarin Test Cloud using Xamarin.UITest. You will need have a Test Cloud account and a Test Cloud API key.

TextKitDemo

This sample demonstrates the flexibility and power of new Text Kit APIs.

This sample shows how to use many of the new iOS 7 font features in your application

This sample shows how to use many of the new iOS 7 font features.

ThreadedCoreData

This sample shows how to use Core Data in a multi-threaded environment.

TicTacToe

Demonstrates how to customize UIKit and build custom controls.

TipCalc

Tip calculator is simple cross platform application, which calculates the correct tip amount.

TipCalc

Based on the existing iOS and Android sample, but completely rewritten for Xamarin.Forms.

Toast Modern

Shows how to test your ideas quickly to save time and money.

Todo (Xamarin.Forms)

Demonstrates using either PCL or Shared Project templates.

TodoLocalized (Xamarin.Forms)

Demonstrates how to localize Xamarin.Forms using RESX.

Touch

This sample illustrates how to work with touch in iOS. Specifically, it shows how to handle touch events, use pre-defined gesture

Touch

This sample illustrates how to work with touch in iOS.

Touch Cells

An example of how to use a UITableView and display a custom cell within it.

Touches

An example on how to handle touches to move multiple objects.

Transitioning to Xcode 4

This sample supplements the article on transitioning Xcode 3 apps to Xcode 4.

Transitions Demo

This sample shows how to create custom view controller transitions in iOS.

UICatalog: Creating and Customizing UIKit Controls

Sample is a catalog exhibiting many views and controls in the UIKit framework.

UIKit Dynamics Catalog

This sample illustrates a number of uses of UIKit Dynamics.

VideoTimeLine

Sample shows how to use VTDecompressionSession to access hardware video decoder.

View Transitions

An example on how to use Core Animation transitions.

WatchKit Catalog: Using WatchKit Interface Elements

WatchKit Catalog is an exploration of the UI elements available in the WatchKit framework.

WatchLocalization (WatchKit)

Sample code for the Xamarin.iOS Watch Kit localization documentation.

WatchNotifications (WatchKit)

Sample code for the Xamarin.iOS Watch Kit notifications documentation.

WatchTables (WatchKit)

Sample code for the Xamarin.iOS WatchKit Table control documentation.

Way Up Sample

Demonstrates how to autorate to interface orientation.

Weather Map

Sample demonstrates using annotations in MapKit by placing weather forecasts above cities.

Working with Images

This sample demonstrates using application support icons.

Working With Tables

This collection of samples shows how to use a table in Xamarin.iOS

World Cities

A simple example of using the Map Kit API in a Xamarin.iOS application.

Xamarin Forms Image Resizer

Demonstrates how to cross-platform load, resize, and display an image on the screen.

XAML Samples

A collection of samples that demonstrate how to utilize XAML with Xamarin.Forms.

Xuzzle

This sample implements the classic 14-15 puzzle using Xamarin.Forms.

Zooming PDF Viewer

This sample demonstrates how to use CGPDFDocument class to show PDF files in scroll view.