我们可以通过这些方式使用 AppDelegate 的对象说......
1)
AppDelegate *app; // Globally declared
app = (AppDelegate*)[[UIApplication sharedApplication] delegate]; //Use this any where in app
2)
#define APP_DELEGATE ((AppDelegate*)[[UIApplication sharedApplication] delegate])
[APP_DELEGATE.navigationController ...]; //use macro any where in app
我想知道在性能和处理速度方面哪种方式更好?