Binding iOS Libraries
- PDF for offline use
- Related Links:
Let us know how you feel about this
Translation Quality
0/250
last updated: 2017-03
How to make iOS native libraries (and CocoaPods) accessible in Xamarin apps.
Follow these links to learn about binding Objective-C libraries and CocoaPods for Xamarin.iOS and Xamarin.Mac:
- Overview - Describes how binding works.
- Binding Objective-C Libraries - Instructions on how to bind Objective-C libraries for use in Xamarin projects.
- Type Definition Reference Guide - Describes all of the attributes available to binding authors to drive the binding generation process.
Objective Sharpie
Objective Sharpie is a command line tool to help bootstrap the first pass of a binding. It works by parsing the header files of a native library to map the public API into the binding definition (a process that is otherwise done manually). Objective Sharpie does not create a binding by itself, but it can help get you started!
Objective Sharpie 3.0 introduced the ability to bind Cocoapods directly!
Walkthrough - Binding an iOS Objective-C Library
This page provides a step-by-step walkthrough of creating an iOS binding project using the open source InfColorPicker Objective-C project as an example. The InfColorPicker library provides a reusable view controller that allow the user to select a color based on its HSB representation, making color selection more user-friendly. Objective Sharpie will be used to assist in the binding process.
Let us know how you feel about this
Translation Quality
0/250
Xamarin Workbook
If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.

