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

[ios] remove layout guide observers - #9109

Merged
boundsj merged 1 commit into
release-ios-v3.6.0-android-v5.1.0from
fred-remove-observer-fix
May 30, 2017
Merged

boundsj merged 1 commit into
release-ios-v3.6.0-android-v5.1.0from
fred-remove-observer-fix

Conversation

@frederoni

Copy link
Copy Markdown
Contributor

Fixes #9096

As @incanus and @jmkiley pointed out, this was a lifecycle issue I overlooked. The private _UILayoutSpacer was being deallocated before MGLMapView leaving a stale observer that raised an exception. This fix removes the observers if MGLMapView is moved to a nil window which is called before _UILayoutSpacer gets deallocated.

observer-fix

@frederoni
frederoni requested review from incanus and jmkiley May 25, 2017 19:50
@frederoni
frederoni force-pushed the fred-remove-observer-fix branch from 7c3e190 to ab42036 Compare May 25, 2017 19:54
@jmkiley

jmkiley commented May 25, 2017

Copy link
Copy Markdown
Contributor

Tested it with ios-sdk-examples, seems 👍 to me!

@jmkiley jmkiley modified the milestone: ios-v3.6.0 May 25, 2017
@kkaefer kkaefer added the iOS Mapbox Maps SDK for iOS label May 29, 2017
@boundsj
boundsj merged commit 608fd66 into release-ios-v3.6.0-android-v5.1.0 May 30, 2017
@boundsj
boundsj deleted the fred-remove-observer-fix branch May 30, 2017 20:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

iOS Mapbox Maps SDK for iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants