[MonoTouch] MT 5.0 and problem with MKUserLocation

Michal Sartoris miso at resco.net
Tue Oct 18 05:00:33 EDT 2011


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/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111018/a709b4a6/attachment.html 


More information about the MonoTouch mailing list