Search code examples
delegatesios4uiapplicationdelegate

How feasible is to use other delegates in app delegate file in iOS 4.2?


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

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

Is this recommended?


Solution

  • 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.