Hide the cursor of an UITextField

后端 未结 13 842
甜味超标
甜味超标 2020-12-07 07:51

I am using a UITextField with a UIPickerView for its inputView, so that when the user taps the text field, a picker is summoned for th

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 08:40

    You can just clear the textfield's tintColor

    self.textField.tintColor = [UIColor clearColor];
    

    Swift 3.0

    self.textField.tintColor = .clear
    

    enter image description here

提交回复
热议问题