Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
Important
We're currently investigating custom binding usage on the Xamarin platform. Please take this survey to inform future development efforts.
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.
Video
iOS Bindings in C/C++ video