Adding More Than 2 Delegates in iPhone App

Posted by golfromeo on Stack Overflow See other posts from Stack Overflow or by golfromeo
Published on 2010-06-09T02:29:36Z Indexed on 2010/06/09 2:32 UTC
Read the original article Hit count: 350

Filed under:
|
|

This is a simple question that can be answered fast by someone who's more familiar with Objective-C than I am- how can one add more than 2 delegates to a Class?

To clarify, I'm used to putting delegates in classes like this:

@interface ViewController : UIViewController <UIWebViewDelegate> { ...

When I try to put two delegates:

@interface ViewController : UIViewController <UIWebViewDelegate> <UITextFieldDelegate> { ...

...the app gives many errors, none of which help with the situation.

Is there a separator that I need to put between the delegates, or is it possible at all to have more than two?

Thanks for any help in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c