rahulbsb
rahulbsb

Reputation: 115

MKMapView not scaling to iPad view

I have a project that makes use of MKMapView, that works fine on an iphone. But when i run it on an ipad simulator or actual ipad, the MKMapView does not scale to cover its view. It retains the iPhone's viewscale. Here is what it looks like on an iPhone- MKMapView on an iPhone

And here is what it looks like on an iPad- MKMapView on an iPad

I have universalized the project from the project settings. What am I missing here. Any advice would be helpful.

Upvotes: 0

Views: 19

Answers (1)

Kosuke Ogawa
Kosuke Ogawa

Reputation: 7451

You need to add constraints to MapView.

enter image description here

Upvotes: 2

Related Questions