ios-samples/BindingSample
Rolf Bjarne Kvinge c48c4d648c
Add .editorconfig and fix formatting accordingly. (#471)
The new .editorconfig is copied from the one in xamarin/xamarin-macios.

Formatting was fixed using 'dotnet format whitespace --folder .'
2023-02-17 14:55:43 +01: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 Add .editorconfig and fix formatting accordingly. (#471) 2023-02-17 14:55:43 +01:00
XMBindingLibrarySample Add .editorconfig and fix formatting accordingly. (#471) 2023-02-17 14:55:43 +01: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 Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
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.