Reputation: 5038
I have this constaints for map view
But I have this error
If I replace map view with UIView, everything is OK
Update
To reproduce you need to set settings of view controller like this:
Upvotes: 1
Views: 329
Reputation: 904
Try to add constraint like equal width to view and equal height to view.
I think any other constraint would create a error. First check all the constraints of your view.
Upvotes: 0
Reputation: 12972
I experienced the same issue when I tried to put an MKMapView as a full screen view. To do so I set:
These above are referred to the MKMapView's superview (the main controller view). And xCode kept saying me "Error: missing constraints for Y position". I had never seen this error doing the way I did. I solved with these other four constraints (equivalent in my opinion):
Always referred to the MKMapView's superview (the main controller view).
Upvotes: 1
Reputation: 1568
OK got it solved at my end. Change the MKMapView's frame x:0 y:0 Width:375 Height:554 and than see is it still there or not.
See the setting. It is as same as you have
Note: Sorry Don't know How to add images in answer.
Upvotes: 1