I have a UITextView that points to the File’s Owner as its delegate, and I have a number of the delegate functions implemented. However, I would also like to point to a second object (in this case a TextExpander object, http://www.freshblocks.com/tutorials/how-to-add-textexpander-touch-sdk-to-iphone-apps/) also as a delegate. How might this be possible? As far as I know there can only be one delegate in objective-c.
Share
It seems that they solve this in step 5, by setting
[textExpander setNextDelegate:self];before setting thetextExpanderobject as the “primary” delegate of the view.I don’t have the code myself so I haven’t tried it, though, and their documentation is… well not.