0

I have a signupcontroller for which I check if user is logged in , if not then I present it in appdelegate, also as this signupcontroller has been subclassed for customisation hence delegates are being used to talk to events like input validation before sending to server, my question is how set a delegate in appdelegate on a UIViewController?(can't use signUpController.delegate = self;) It shows a warning "sending 'xxxviewcontroller strong' to a parameter of incompatible type 'id

Simply Put I want to set some view controller as delegate not in that view controller but in appdelegate

Abhinav Singh
  • 7,880
  • 1
  • 23
  • 33
  • Why can't you use signUpController.delegate ? Do you get an error or warning ? – CW0007007 Sep 19 '13 at 08:31
  • can u explain in more detail and simplified manner..the way u have asked the question is very complicated... – Prashant Nikam Sep 19 '13 at 08:32
  • it shows a warning "sending 'xxxviewcontroller strong' to a parameter of incompatible type 'id' – Abhinav Singh Sep 19 '13 at 08:35
  • I would guess your `xxxviewcontroller` does not conform to the `xxxloginViewControllerDelegate`. In `xxxviewcontroller.h` you need to have `@interface xxxviewcontroller`. Was that it? – czechboy Sep 19 '13 at 08:40
  • no, i simply want to set some view controller as delegate not in that view controller but in appdelegate – Abhinav Singh Sep 19 '13 at 08:46

0 Answers0