Just to clarify, the code:
if #available(iOS 14.0, *) { pickerView.subviews[1].backgroundColor = .clear }
needs to go in the following protocol method:
func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.