iOS UITextfield disable editing for typing swift
Solution:
1. Set the textfield inputview to UIView and set the user interaction to be enabled.
2. If you set the user interaction disabled you cannot be able to change the text as bold font style and change the background color.
If you want to change that to disable then use the below code
1. Set the textfield inputview to UIView and set the user interaction to be enabled.
2. If you set the user interaction disabled you cannot be able to change the text as bold font style and change the background color.
myTxtField.inputView = UIView()
If you want to change that to disable then use the below code
myTxtField.inputView = nil
Excellent Blog, I like your blog and It is very informative. Thank you
ReplyDeleteBest online swift course
Ranorex Online Training