0

How feasible is it to use other delegates in app delegate file . e.g.

@interface AppDelegate : UIResponder <UIApplicationDelegate, UIAlertViewDelegate>{
BOOL LoadingForFirstTime;
}

Is this recommended?

halfer
  • 19,824
  • 17
  • 99
  • 186
Nik
  • 2,913
  • 7
  • 40
  • 66

1 Answers1

0

In short, Yes it is feasible, No it is not recommended.

Typically the AppDelegate should handle system notifications, core data setup and not a whole lot more. Check out Table 2.1 here: Apple Docs

I am guessing, from the BOOL you are defining, that you are checking if this is the first load. This might work, but it isn't recommended practice.

MobileVet
  • 2,958
  • 2
  • 26
  • 42
  • Thank you.. I just wanted to know if my app will get rejected if I do this – Nik May 16 '12 at 13:07
  • Beyond 'private API' use, there are few hard and fast rules about rejection. That said, I doubt Apple cares that much if your code is 'clean' or not. They may have an issue with how & when you display warnings though if they result in a negative user experience / flow through the app. – MobileVet May 16 '12 at 14:13