Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you connect the "delegate" outlet of a UITextView to a class that implements UITextViewDelegate protocol?

How do you connect the "delegate" outlet of a UITextView to a class that implements UITextViewDelegate protocol?

I can't seem to find an example in the docs

The weird thing is the UITextView's "delegate" outlet has that drag 'n drop interface thingy, like you can wire it up to another widget but of course, I don't want to wire it up to a widget, I want to wire it up to an existing class.

like image 556
bobobobo Avatar asked Nov 23 '09 18:11

bobobobo


1 Answers

This is a pretty old question, but I had trouble with it as well and figured I'd share an up-to-date Xcode 5 solution.

You should be able to drag the delegate to the yellow circle with the white square inside of it that's down in that black bar below the view controller on your storyboard. This is not at all obvious, so I've provided a screenshot

enter image description here

like image 174
n00neimp0rtant Avatar answered Oct 19 '22 16:10

n00neimp0rtant