Re: iOS - Debugging an uncooperative UIAlertController
Getting a little closer on this one.toggle quoted messageShow quoted text
Apparently the UILabels within the UIActionViews have the appropriate text, but the UILabel and the UILabel’s tint colors are 0 or close to it and the font isn’t accessible. Is there some known case where a UILabel’s view is not completed being created for a UIAlertAction?
This is working fine in the simulator and failing on the device 100% of the time.
It turns out that our UIAlertController category was grabbing the tint value from [UIApplicationController sharedApplication].delegate.window.tintColor;
This would return a close to zero tintColor only on some devices. Why? Who knows. Simply commenting out that line let the expected tintColor be displayed.
Why the View Debugger showed a no font assigned to the label seemed odd, but as soon as I commented out that line, this worked. I’ll check to make sure that the tintColor isn’t close to white or transparent.
Apparently, assumption is the mother of all something something.
On Jul 17, 2017, at 12:03 PM, Alex Zavatone <zav@...> wrote: