iCarouselネイティブライブラリ(this exampleで説明されているLinkWithメソッドを使用)からコンパイルされたネイティブクラスを派生しようとしています。 使用する場合は、生成結合、すべてが完璧に動作します:ネイティブクラスのモノタック派生クラス
iCarousel carousel = new iCarousel(new RectangleF(0, 0, 300, 300));
しかし、この派生クラスを作成しようとすると:
public class Carousel2 : iCarousel
{
public Carousel2(RectangleF rect) : base(rect)
{
Console.WriteLine("do something");
}
}
とこのようにそれを使用して:
Carousel2 carousel = new Carousel2(new RectangleF(0, 0, 300, 300));
をそれはコンパイルが、それエラーなしで作業を停止します。それは私が行方不明であるか?
UPDATE:私はここにObjective-CのヘッダとApiDefinition.csソースコードを入れている: http://dantes-andreea.blogspot.com/2012/02/icarousel-monotouch-binding-code.html
あなたのバインディングはどこからでも閲覧(閲覧またはダウンロード)できますか?例えばgithub – poupou
私はobjective-cヘッダーとapidefinition.csファイルをここに入れました:http://dantes-andreea.blogspot.com/2012/02/icarousel-monotouch-binding-code.html – Daniel