I am converting an example from Objective-C to c# and it used MKCoordinateRegionForMapRect. I am not able to find the equivilent in MonoTouch. Can someone help?
I am converting an example from Objective-C to c# and it used MKCoordinateRegionForMapRect. I
Share
The pinvoke for this function is (presently) missing from MonoTouch. Based on the documentation [1] the right pinvoke should look like:
Add this into your code (inside a type and with the right ‘using’ namespaces) and it should work fine 🙂
[1] http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MapKitFunctionsReference/Reference/reference.html
UPDATE: Newer MonoTouch releases have this new method (MonoTouch 4.2.x+)