¡@

Home 

2014/10/15 ¤U¤È 10:11:19

iphone Programming Glossary: mapviewlink

Optimizing Code for MKMapView - Large Number of Annotations

http://stackoverflow.com/questions/7921106/optimizing-code-for-mkmapview-large-number-of-annotations

I can improve my code below Thank you. #import MapView.h #import MapPlaceObject.h @implementation MapView @synthesize mapViewLink mapLocations detail failedLoad id initWithNibName NSString nibNameOrNil bundle NSBundle nibBundleOrNil self super initWithNibName.. longitude MyLocation annotation MyLocation alloc initWithName name address address coordinate coordinate autorelease mapViewLink addAnnotation annotation void showLinks id sender if UI_USER_INTERFACE_IDIOM UIUserInterfaceIdiomPad detail DetailViewController.. annView.animatesDrop TRUE annView.canShowCallout YES annView.calloutOffset CGPointMake 5 5 return annView void dealloc mapViewLink release mapLocations release detail release self.failedLoad nil failedLoad release super dealloc void didReceiveMemoryWarning..