Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Avoid removing content size constraints #1793

Merged
merged 1 commit into from
Jun 26, 2015
Merged

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jun 26, 2015

This PR avoids removing content size constraints that are needed to maintain the intrinsic size of the logo and ℹ️. Also, on iOS 8.0+, we now use +[NSLayoutConstraint activateConstraints:] and +deactivateConstraints: to efficiently prevent redundant constraints from lingering.

Fixes #1779.

/cc @friedbunny @incanus

@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS in progress labels Jun 26, 2015
Also, on iOS 8.0+, use `+[NSLayoutConstraint activateConstraints:]` and `+deactivateConstraints:` to efficiently prevent redundant constraints from lingering.

Fixes #1779.
@1ec5 1ec5 force-pushed the 1ec5-constraints-tab-view-1779 branch from 378b7cd to 5ea41a5 Compare June 26, 2015 21:55
@1ec5 1ec5 merged commit 5ea41a5 into master Jun 26, 2015
@1ec5 1ec5 deleted the 1ec5-constraints-tab-view-1779 branch June 26, 2015 22:58
@1ec5 1ec5 removed the in progress label Jun 26, 2015
1ec5 added a commit that referenced this pull request Jul 5, 2015
In #1793, I conflated the compass container’s constraints to its parent view with the compass container’s content size constraints, but only in the iOS 7 code path. The result was a crash on launch due to an unprepared view hierarchy.

Fixes #1818.
@robipresotto
Copy link

EXC_BAD_ACCESS

[NSLayoutConstraint deactivateConstraints:self.logoViewConstraints];

all the time if you are using singleton for the map view

@1ec5
Copy link
Contributor Author

1ec5 commented Aug 10, 2015

@robipresotto, please open a new issue regarding this crash. If possible, please provide more information about the environment, for example the verisons of iOS and Mapbox GL, device model, and whether you’re creating the map view programmatically or with a storyboard. Thanks!

@1ec5
Copy link
Contributor Author

1ec5 commented Aug 10, 2015

Also, please set an Objective-C exception breakpoint and provide the stack trace at the point of the exception being thrown.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants