[MonoTouch] MT 5.0 and problem with MKUserLocation

Jeff Stedfast jeff at xamarin.com
Tue Oct 18 15:04:17 EDT 2011


Hi Michal,

This indeed looks like a bug in MonoTouch. Could you submit this to
http://bugzilla.xamarin.com?

I'll poke Miguel about how to fix this in the meantime.

Thanks!

Jeff

On Tue, Oct 18, 2011 at 5:00 AM, Michal Sartoris <miso at resco.net> wrote:

>  Hi,****
>
> ** **
>
> I’ve just upgraded to the latest Xcode (with iOS 5 SDK), MD 2.8.1 and MT
> 5.0 and am not able to compile my project. I have three issues with
> MKUserLocation:****
>
> ** **
>
> **1.       **It is not derived from MKAnnotation****
>
> **2.       **Title has no setter****
>
> **3.       **Subtitle has no setter.****
>
> ** **
>
> In previous MT (4.2.2) everything was fine.****
>
> ** **
>
> From assembly browser:****
>
> 4.2.2 ****
>
> ** **
>
> [Register ("MKUserLocation", true)]****
>
> public class MKUserLocation : MKAnnotation****
>
> {****
>
>                 public virtual string Title { get; set; }****
>
>                 public virtual string Subtitle { get; set; }****
>
> }****
>
> ** **
>
> 5.0****
>
> [Register ("MKUserLocation", true)]****
>
> public class MKUserLocation : NSObject****
>
> {****
>
>                 public virtual string Title****
>
>                 {****
>
>                                 [Export ("title")]****
>
>                                get {}****
>
>                 }****
>
>                 public virtual string Subtitle****
>
>                 {****
>
>                                 [Export ("subtitle")]****
>
>                                 get {}****
>
>                 }****
>
> }****
>
> ** **
>
> I omitted other lines.****
>
> ** **
>
> By apple’s MKUserLocation docs, MKUserLocation should confomr to
> MKAnnotation as well as Title and Subtitle properties should have also
> setter (otherwise it is not possible to set them). Did you miss something?
> ****
>
> ** **
>
> Best regards,****
>
> ** **
>
> Ing. Michal Sartoris****
>
> Resco.net <http://resco.net/>****
>
> ** **
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 6551 (20111017) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111018/1f5fde1d/attachment.html 


More information about the MonoTouch mailing list