Here is a quick (and unverified) definition for the above:
using MonoTouch.Foundation; using MonoTouch.UIKit; using System.Drawing; namespace MonoTouch.Popover { [BaseType (typeof (UIBarButtonItem))] public interface WEPopover { [Export ("frameInView")] RectangleF FrameInView (UIView view); [Export ("superView")] UIView SuperView { get; } } }
Then you use the btouch tool to compile the definition into a .dll, which you can use in MonoTouch, for example.
imac:tmp sebastienpouliot$ /Developer/MonoTouch/usr/bin/btouch we.cs imac:tmp sebastienpouliot$ ls -l we.dll -rwxr-xr-x 1 sebastienpouliot staff 5632 28 Aug 10:23 we.dll
I suggest you familiarize yourself with existing documentation on how to link existing ObjectiveC libraries. The document is available at: http://ios.xamarin.com/Documentation/Binding_New_Objective-C_Types
poupou
source share