Anotation view will open at thia place mark without toching placemarker
It is posibale with
///////////////////////////////////////////////
CLLocation *myPlaceLocation = [[CLLocation alloc] initWithLatitude:23.7899 longitude:75.890];
MyPlaceMark *myPlaceMark = [[MyPlaceMark alloc] initWithCoordinate:[myPlaceLocation coordinate]];
[myPlaceMark setAnootationTitle:@"My Place Mark"];
[myPlaceMark setAnootationSubTitle:@"My Place Mark"];
[myMapView addAnnotation:myPlaceMark];
//myMapView is instance of MKMapView class
[myMapView setCenterCoordinate:myPlaceLocation.coordinate animated:YES];
[myMapView setSelectedAnnotations:[[NSArray alloc] initWithObjects:myPlaceMark,nil]];
//////////////////////////////////////
Thanks,
Hemali Mojidra
Virtueinfo, Ahmedabad
|