You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Compass/logo/attribution control views’ constraints are ambiguous on iOS 10 #6260
Perhaps there was an issue migrating the storyboard to the Xcode 8 format, which no longer has a 600×600 default simulated size.
Making the Mapbox view the base view does solve this problem, however.
It isn’t recommended to make the MGLMapView the root view unless you intend for it to be the only view in the scene.
In any case, I’m unable to reproduce the visual issue in Xcode 8.0 beta 6 (8S201h) with a test project that uses an MGLMapView as a direct child of the root view, with zero-point constraints on all sides and top and bottom bars. However, Xcode is reporting runtime Auto Layout warnings regarding the logo view, ℹ️ button, and compass container view, as you reported:
Layout Issues Group
x-xcode-debug-views://7ffd35f23cb0: runtime: Layout Issues: Vertical position is ambiguous for UIImageView.
x-xcode-debug-views://7ffd35f23cb0: runtime: Layout Issues: Vertical position is ambiguous for UIButton.
x-xcode-debug-views://7ffd35f23cb0: runtime: Layout Issues: Vertical position is ambiguous for UIView.
Activity
friedbunny commentedon Sep 6, 2016
As I dig into this, it may just be a problem with Treble’s storyboard setup, which IB says has a misplaced view:
friedbunny commentedon Sep 6, 2016
Except that fixing the “misplaced view” doesn’t fix the inset problems. (And this view was never 600x600, as IB claims.)
Making the Mapbox view the base view does solve this problem, however. (Not pictured.)
1ec5 commentedon Sep 6, 2016
Perhaps there was an issue migrating the storyboard to the Xcode 8 format, which no longer has a 600×600 default simulated size.
It isn’t recommended to make the MGLMapView the root view unless you intend for it to be the only view in the scene.
In any case, I’m unable to reproduce the visual issue in Xcode 8.0 beta 6 (8S201h) with a test project that uses an MGLMapView as a direct child of the root view, with zero-point constraints on all sides and top and bottom bars. However, Xcode is reporting runtime Auto Layout warnings regarding the logo view, ℹ️ button, and compass container view, as you reported:
Make Mapbox view the root view, not a subview
1ec5 commentedon Oct 7, 2016
Duplicate of #5549.