Blurring a UIPickerView's background

前端 未结 1 1546
一个人的身影
一个人的身影 2021-01-14 18:13

I am displaying a UIPickerView when tapping on a UITableViewCell. I am trying to add a UIVisualEffectView to the pickerView to give it

相关标签:
1条回答
  • 2021-01-14 19:08

    As you do not know the exact view hierarchy of a UIPickerView I would simply recommend to give your pickerView clearColor as backgroundColor and to put the picker view as subview of your blurEffectView. This would be the right way to do this.

    0 讨论(0)
提交回复
热议问题