Cannot assign value of type 'ViewController' to type 'UITextFieldDelegate?'

0 votes
35 views
asked May 18 in Swift by admin (8,115 points)

Hi I am using the below to assing the delegate for UITextrField

   titleTextFied.delegate = self 

   but am getting the below error?

Cannot assign value of type 'ViewController' to type 'UITextFieldDelegate?'

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...