PDA

View Full Version : Can one class implement two delegates ?


IndieKim
05-27-2009, 02:06 PM
I am able to compile, but things don't work as I would expect at runtime. My Actionsheets worked fine until I added Alerts to my app.

My class is defined as follows in the .h file :

@interface ElderViewController : UIViewController
<UIActionSheetDelegate,UIAlertViewDelegate> {

Is this wrong ?

Thanks!
Kim

aboylearning
09-17-2009, 04:54 PM
No there is nothing wrong in this, you can implement as many delegates as you want.