UIApplication
Uiapplication-> Uiresponder
1.Introduction
1>symbol of the entire application, an application on auiapplicationobject, using a singleton design pattern
2>through[uiapplication sharedapplication]Access this Singleton object
2.Common usage
1>set the red hint number in the upper-right corner of the icon
App.applicationiconbadgenumber = Ten;
2>set the style of the status bar
App.statusbarstyle = Uistatusbarstyleblackopaque;
3>control the display and hiding of the status bar
App.statusbarhidden = YES;
4>Show the circle above the status bar
App.networkactivityindicatorvisible = YES;
5>Open External Resources
* Open Web page
[App Openurl:[nsurl urlwithstring:@ "http://www.baidu.com"]];
* Call
[App Openurl:[nsurl urlwithstring:@ "tel://10086"]];
* Send SMS
[App Openurl:[nsurl urlwithstring:@ "sms://10086"]];
6>Agent Properties (when the application has some system-level events, the agent is notified and sent to the agent for processing)
@property(nonatomic,Assign)ID<UIApplicationDelegate> delegate;
Proxy methods for Uiapplicationdelegate