2

Not sure why I am getting this error (title of this issue is the error as shown in screenshot below) when I try to do self.tv_salaryNumber.delegate = self.

My class EarningsVC does in fact inherit the UITextFieldDelegate protocol, so cant figure out why getting this error. (You can see that on the right most part of hte window under Quick Help too.

enter image description here

user1406716
  • 9,565
  • 22
  • 96
  • 151
  • remove "self" from the textfeild use it as tv_salaryNumber.delegate = self and use TextFeildDelegate instead TextViewDelegate – Fatti Khan Jun 08 '15 at 05:09
  • @FattiKhan that isnt probably needed either, but i had a more silly error. added that as answer (hate to answer my own question but this was a silly one, thanks for your time) – user1406716 Jun 08 '15 at 05:10

1 Answers1

13

Hate to answer my own question but found my (silly) error right after I posted this. I was adding UITextViewDelegate instead of UITextFieldDelegate - so had the wrong delegate.

user1406716
  • 9,565
  • 22
  • 96
  • 151
  • 1
    lol... 10 minutes of staring at this compiler error for my own code later... I see that I used 'View' also... ;)!!!... – J-Dizzle Jan 14 '16 at 14:10