I'm trying to create à binding library from this project https://github.com/Eclair/CircleProgressBar.
I use sharpie to generate the ApiDefinition.cs and the .a files.
> sharpie pod init ios CircleProgressBar
> sharpie bind
I copied the .a file in my project and put the generated c# code in my ApiDefinition.cs file. However the generated code does not compile.
I think that the problem is that, these lines
typedef NSString*(^StringGenerationBlock)(CGFloat progress);
typedef NSAttributedString*(^AttributedStringGenerationBlock)(CGFloat progress);
Are converted to these
delegate string StringGenerationBlock (nfloat arg0);
delegate NSAttributedString AttributedStringGenerationBlock (nfloat arg0);
But the compiler suggests to replace string with IntPtr, and even if I do that and even if the project is compiled, my application crashes if I try to instantiate a CircleProgressBar