I am using CLLocationCoordinate2D in to assign latitude and longitude like this
CLLocationDegrees latitude = [somelat doubleValue];
CLLocationDegrees longitude = [somelongi doubleValue];
CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(latitude, longitude);
When i run this code in iPhone simulator its not showing error but wheni run the same application in ios simulator 3.2 that is the iPad simulator its showing me an “Invalid Initializer” error.
How can i resolve this…Please anybody suggest me a solution to this problem
Thanks and regards,
Sankar Chandra Bose
CLLocationCoordinate2DMakeis available only on iOS 4.0 and later. Do this rather,