(: in theory you could use P/Invoke for non-virtual C member functions, but you'd need to worry about per-compiler name mangling, which is a world of pain better ignored.) Instead, selectors are sent to an Objective-C class or instance using the function. SIMULATOR) size = cgsize_objc_msg Send_Int Ptr_float_int( target.
You may find this helpful guide on Objective-C messaging useful. Handle, width, mode); used before switching to the Unified APIs) the above code would have run on the simulator but crashed on the device.
The Xamarin.i OS debugger is integrated into your IDE and it allows developers to debug Xamarin.i OS applications built with any of the managed languages supported by Xamarin.i OS in the simulator and on the device.
The declaration (from Apple's documentation) is: [Dll Import (Constants. Selector selector = new Selector ("size With Font:for Width:line Break Mode:"); UIFont font = ...
This article explains what each of these is, and how each is used from C#.
It demonstrates how Xamarin.i OS uses i OS controls to expose familiar .
This is different than hard debuggers like LLDB or MDB which control a program without the knowledge or cooperation from the debugged program.
When you are ready to start debugging your application the first step is to set breakpoints your application.