This is the 3rd part about using the BEMCheckBox, an Objective-C library, in Xamarin. Part 1 described how to compile the BEMCheckBox library using Xcode. Part 2 showed how to combine the multiple libraries we compiled from Part 1 into one library. In this part I’ll describe how to use Sharpie to create the C# API interface.
Sharpie is a tool that reads the header files in the BEMCheckBox framework and extract a C# interface. We could create the interface manually but it’s easier if we let technology do some of the work for us. Don’t worry about this job being replaced by a robot as we will have to manually edit the file after it’s generated, at least for BEMCheckBox. Download the sharpie tool here and read more about the sharpie here.
[Read More]