twilight2 twilight2 - 1 year ago 91
iOS Question

Button not showing on MapKitView in the run time

I am trying to set a button on MapKitView. Unfortunately it is not showing in the run time. And it is set by an auto suggest constraint .
enter image description here

Answer Source

Try with by making UIButton view as subview of MKMapView.

For example :

class ViewController: UIViewController {

    @IBOutlet  var mapView: MKMapView!       

    @IBOutlet weak var _whareBtnView: UIButton!

    override func viewDidLoad() {

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download