Quantcast
Channel: Active questions tagged uipickerview - Stack Overflow
Viewing all articles
Browse latest Browse all 592

UIPickerView rendering incorrectly after iOS 14/Xcode 12.0.1 update

$
0
0

Anybody notice that the text in your application's UIPickerViews is rendered incorrectly, with the first character cut off? I'm seeing this in all UIPickerViews in my app, on multiple devices. You can see a few pixels of the first character in most cases.

I've tried deleting derived data, and the application from the phones, but no dice.

I'm not sure which update might have triggered the problem, but it just started in a project that has been stable for months. The code for the labels:

func pickerView(_ pickerView: UIPickerView,                viewForRow row: Int,                forComponent component: Int,                reusing view: UIView?) -> UIView{    let pickerLabel = UILabel()    pickerLabel.text = "Rec.709"    pickerLabel.font = UIFont(name: "Ropa Sans", size: 18)    pickerLabel.textColor = UIColor.white    pickerLabel.textAlignment = NSTextAlignment.left}

enter image description here


Viewing all articles
Browse latest Browse all 592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>