-
Notifications
You must be signed in to change notification settings - Fork 1.3k
iOS tintColor bug #6023
Comments
Are you doing anything in your own code with |
I set the tintColor for a few UIButtons in viewDidLoad. As for the breakpoint on |
Is the |
Yes. |
Aha! Ok, so Any ideas @1ec5? Maybe another approach might be to enumerate the subviews of |
We certainly could update the tint color for only the subviews we create. However, if I'm not mistaken, the current behavior is consistent with any UIKit container view such as a UITableView or UIScrollView. I'll have to double-check that though. In any case, the workaround is to set the tint color back to the desired color, or to subclass UIButton and override -setTintColor: to ignore any attempt to set the tint color to the map view's tint color. |
Thanks guys, great to see such fast and quality responses. |
Hello I have an issue with the tintColor of all my UIButtons in the view hierarchy being set to the MGLMapView's tintColor. This only happens if I first present a UIAlertController and then tap one of the action buttons.
A little about my setup, I am using Swift 2.2 and setup the MGLMapView using StoryBoards.
Here is a short clip of what happens.
Platform: iOS
Mapbox SDK version: 3.3.4
Steps to trigger behavior
Expected behavior
The tintColor of UIButtons should remain the same after dismissing a UIAlertController.
Actual behavior
The tintColor for all UIButtons is set to the default of MGLMapView, upon dismissing a UIAlertController.
The text was updated successfully, but these errors were encountered: