ios-samples/BindingSample
conceptdev d2a7c9f37a update header yaml 2019-07-29 17:25:06 -07:00
..
NativeProject Updated the 'BindingSample' sample (#339) 2019-01-16 09:51:51 -08:00
Screenshots Updated the 'BindingSample' sample (#339) 2019-01-16 09:51:51 -08:00
XMBindingLibrary Fixed binding sample (#350) 2019-01-17 08:58:53 -08:00
XMBindingLibrarySample Fixed binding sample (#350) 2019-01-17 08:58:53 -08:00
BindingSample.sln Updated the 'BindingSample' sample (#339) 2019-01-16 09:51:51 -08:00
Makefile Updated the 'BindingSample' sample (#339) 2019-01-16 09:51:51 -08:00
Metadata.xml
README.md update header yaml 2019-07-29 17:25:06 -07:00

README.md

name description page_type languages products urlFragment
Xamarin.iOS - Xamarin.iOS Binding Sample Shows how to utilize an existing Objective-C library and expose it for use in a Xamarin.iOS project sample
csharp
objc
xamarin
bindingsample

Xamarin.iOS Binding Sample

This example shows how we can utilize an existing Objective-C library and expose it for use in a Xamarin.iOS project. For instance, you may have existing code written in Objective-C that you may want to bind to C# to consume in your Xamarin.iOS project. This sample provides a basic template/overview of the steps involved, including:

  • Creating a "fat" or multi-architecture library that can be target both the iOS simulator and device.
  • Defining an API definition file in the form of a C# interface against the Objective-C API.
  • Building a *.dll that contains both the binding and and the embedded native library.

Understanding this Sample

This sample consists of three distinct source projects:

  • Xcode Project in Objective-C
  • Xamarin.iOS Binding classes
  • Xamarin.iOS Sample Project

Please see the README in each project folder for more details.