i want convert nsmutablearray cllocationcoordinates2d[]
i tried following gave me error ,(this kind of type case not allowed)
nsmutablearray* arrtest ; // had added cllocationcoordinates2d objects cllocationcoordinates2d[] locations = (cllocationcoordinates2d[])arrtest how convert?
if have nsarray need cast in c# array, following:
var locations = nsarray.fromarray<cllocationcoordinate2d>(arrtest); however, considering apple apis in xamarin.ios return c# array instead of nsarray, need this. if created nsmutablearray yourself, i'd suggest use list< cllocationcoordinate2d> instead.
Comments
Post a Comment