سؤال

وأريد أن أضيف على زر قادرة فوق لMKAnnotation كما رأينا في هذه الصورة من تطبيق الخرائط:

معاينة http://www.img-hosting.de/bilder/24558PlacemarkWithIconpng

هل كانت مفيدة؟

المحلول

UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure]; 
annoView.canShowCallout = YES;    
annoView.rightCalloutAccessoryView = disclosureButton;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top