mapkitannotation

MapKit Annotations Disappearing

守給你的承諾、 提交于 2019-11-30 20:09:24
I have an array of latitudes and another array of longitudes that I add to an array of type CLLocationCoordinate2D. I then use the new array to annotate multiple points on the map. Some, or most, or maybe even all of the annotations are displaying on the map but as I zoom in (yes, zoom IN), some of the annotations disappear, then come back, or dont. Any ideas on how to keep them all visible? This is behavior I would expect while zooming out, not in. Here is the code i'm using for what i've described above. import UIKit import MapKit import CoreLocation class MultiMapVC: UIViewController,

iOS Custom Annotation: A view below the annotation pin

江枫思渺然 提交于 2019-11-29 08:03:18
I need to replace the default annotation view with my custom annotation view. I need the do following things: Custom Annotation view with an image view embedded in it. A view below it which contains a label in it. For more clarification see the image: In the above image I need to place an image view in the white space which you can see in the image in circular form, next I also need to add a view which contains a label on which I can set any text like me, friends, etc... So, for this I searched number of questions on stack overflow but didn't got my answer. I don't want it on call out, I just

iOS Swift MapKit Custom Annotation [closed]

拟墨画扇 提交于 2019-11-28 16:26:25
I am having some trouble getting a custom annotation to load inside of my map view when I try to place a pin. import UIKit import MapKit import CoreLocation class MapViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate{ @IBAction func ReportBtn(sender: AnyObject) { //MARK: Report Date And Time Details let ReportTime = NSDate() let TimeStamp = NSDateFormatter() TimeStamp.timeStyle = NSDateFormatterStyle.ShortStyle TimeStamp.dateStyle = NSDateFormatterStyle.ShortStyle TimeStamp.stringFromDate(ReportTime) //MARK: Default Point Annotation Begins let ReportAnnotation =

iOS Custom Annotation: A view below the annotation pin

天大地大妈咪最大 提交于 2019-11-28 01:42:49
问题 I need to replace the default annotation view with my custom annotation view. I need the do following things: Custom Annotation view with an image view embedded in it. A view below it which contains a label in it. For more clarification see the image: In the above image I need to place an image view in the white space which you can see in the image in circular form, next I also need to add a view which contains a label on which I can set any text like me, friends, etc... So, for this I

iOS Swift MapKit Custom Annotation [closed]

喜欢而已 提交于 2019-11-27 09:38:14
问题 I am having some trouble getting a custom annotation to load inside of my map view when I try to place a pin. import UIKit import MapKit import CoreLocation class MapViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate{ @IBAction func ReportBtn(sender: AnyObject) { //MARK: Report Date And Time Details let ReportTime = NSDate() let TimeStamp = NSDateFormatter() TimeStamp.timeStyle = NSDateFormatterStyle.ShortStyle TimeStamp.dateStyle = NSDateFormatterStyle.ShortStyle