كيفية إضافة UIButton إلى MKAnnotation (MKView)؟
-
05-07-2019 - |
سؤال
وأريد أن أضيف على زر قادرة فوق لMKAnnotation كما رأينا في هذه الصورة من تطبيق الخرائط:
معاينة http://www.img-hosting.de/bilder/24558PlacemarkWithIconpng
المحلول
UIButton *disclosureButton = [UIButton buttonWithType: UIButtonTypeDetailDisclosure];
annoView.canShowCallout = YES;
annoView.rightCalloutAccessoryView = disclosureButton;
لا تنتمي إلى StackOverflow