5

I found a bug in iOS and I'm wondering if there is a workaround.

If you select a UITextView with a tint color and while it's selected you display a UIAlertController such as by tapping on a navigation bar button item the UITextView loses it's tint color after dismissing the UIAlertController.

Vijay Tholpadi
  • 2,135
  • 1
  • 15
  • 20
Berry Blue
  • 15,330
  • 18
  • 62
  • 113
  • Where are you setting the text views tint color? In code or in the storyboard? Does the UIAlertController have an action? You can reset the tint color of the textview in the alert's completion block. – lostAtSeaJoshua Dec 07 '15 at 04:39
  • 1
    It's set programmatically but happens regardless if the tintColor property is set directly or using the appearance API. I tried resetting the tint color again in the completion block but it doesn't do anything. – Berry Blue Dec 07 '15 at 12:09
  • I am having the exact same problem, @Berry Blue, did you ever find a solution? – Kashif Apr 11 '16 at 19:30
  • No, I filed and submitted a bug report with a sample project but haven't had any response after that. I would file a bug and reference my submitted bug #22879488. – Berry Blue Apr 11 '16 at 19:40

1 Answers1

0

Please see this answer. And also, like +lostAtSeaJoshua said, you can declare a simple method to reset the tint color of your UITextView after executing (or after clicking a confirm button) your UIAlertController.

Community
  • 1
  • 1
Scar
  • 379
  • 4
  • 21