I. Implementation steps for Uiapplicationmain
1. Create a UIApplication object, a program corresponding to a UIApplication object (singleton), UIApplication object is the symbol of the program
2. Next, a UIApplication delegate object is created based on the 4th parameter
3. Turn on a message loop (constantly listening to some system events)
4. After listening to the corresponding event, will send the corresponding message to the agent
* When the program starts, it will send application:didfinishlaunchingwithoptions: message
* When the program enters the background, it will send applicationdidenterbackground: message
....
Two. uiapplication
1. Set the icon number
App.applicationiconbadgenumber = 10;
2. Set the display networking status
app.networkactivityindicatorvisible = YES;
3. Open a URL (call, open the URL, send a text message, send an email)
Nsurl *url = [Nsurl urlwithstring:@ "http://www.baidu.com"];
[App Openurl:url];
Three. Common Files
1.*-info.plist file
The most important document in the 1> project describes the software name. Software version, software unique identification
2> Common Settings
* Software name--bundle display Name--Cfbundledisplayname
* Software version number--Bundle Version = = = Cfbunleversion
* Unique identifier of the software--Bundle identifier--cfbundleidentifier
1.0
2.*-prefix.pch
1> the contents of this file are shared by all other files in the project