I want to list the coordinates from the database in an array (before displaying them on the map). however, in the database they are of type Number, and I cannot figure out how to convert them to coordinates.
This does not work: Where do I have an ATM object (coordinates for atm computers) with NSNumbers for latitude and longitude. This is in a loop with index i to pull them out one by one. AtmsArray is already loaded.
ATM *aATM = [self.atmsArray objectAtIndex:i];
CLLocationCoordinate2D coord=[[CLLocationCoordinate2D alloc] initWithLatitude:(CLLocationDegrees)aATM.Latitude longitude:(CLLocationDegrees)aATM.Longitude];
It shows errors: -CLLocationCoordinate2D is not a class or alias name objectC - pointer value used when a floating point value was expected - parameter value used when a floating point value was expected
I tried several different things, but I can not understand. If you need more information, please let me know.
Doane linde
source
share