Appdelegate Life Cycle Detailed
Last Update:2015-05-31
Source: Internet
Author: User
<span id="Label3"></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(120,73,42)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(120,73,42)"><br>#pragma mark <span style="font-family:‘Heiti SC Light‘">calls after the application has finished loading</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">-(<span style="color:rgb(187,44,162)">BOOL</span>) application: (<span style="color:rgb(112,61,170)">uiapplication</span> *) application didfinishlaunchingwithoptions: ( <span style="color:rgb(112,61,170)"> Nsdictionary</span> *) launchoptions</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">{</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(61,29,129)">NSLog</span><span style="color:rgb(0,0,0)">(</span>@ "didfinishlaunchingwithoptions- <span style="font-family:‘Heiti SC Light‘">loading complete</span> "<span style="color:rgb(0,0,0)">);</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(0,132,0)"><span style="color:rgb(0,0,0)"> </span>// <span style="font-family:‘Heiti SC Light‘">Initialization of a window</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(61,29,129)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(61,29,129)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(187,44,162)"></span>self<span style="color:rgb(0,0,0)">.</span> <span style="color:rgb(79,129,135)">window</span> <span style="color:rgb(0,0,0)">= [</span>[[<span style="color:rgb(112,61,170)">uiwindow</span> <span style="color:rgb(0,0,0)"> </span>alloc<span style="color:rgb(0,0,0)">] </span>initwithframe<span style="color:rgb(0,0,0)">: [[</span><span style="color:rgb(112,61,170)">uiscreen</span> <span style="color:rgb(0,0,0)"> </span> Mainscreen<span style="color:rgb(0,0,0)">] </span>bounds<span style="color:rgb(0,0,0)">] </span>autorelease<span style="color:rgb(0,0,0)">];</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family: ' Heiti SC light '; color:rgb (0,132,0)">< Span style= "font-family:menlo; Color:rgb (0,0,0) "> <span style=" font-family:menlo ">// </span> incoming <span style=" Font-family:menlo ">xib </span> file name to initialize a controller </p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(61,29,129)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(61,29,129)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(187,44,162)"></span>self<span style="color:rgb(0,0,0)">.</span> <span style="color:rgb(79,129,135)">Viewcontroller</span> <span style="color:rgb(0,0,0)">= [</span>[[[<span style="color:rgb(79,129,135)">mjviewcontroller</span> <span style="color:rgb(0,0,0)"> </span>alloc<span style="color:rgb(0,0,0)">] </span>initwithnibname<span style="color:rgb(0,0,0)">:</span><span style="color:rgb(209,47,27)">@ "mjviewcontroller" bundle:</span> <span style="color:rgb(187,44,162)">Nil</span><span style="color:rgb(0,0,0)">] </span>autorelease<span style="color:rgb(0,0,0)">];</span> <span style="color:rgb(0,0,0)"></span> <span style="color:rgb(0,0,0)"> </span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><span style="font-family:Menlo; color:rgb(0,0,0)"> </span> <span style="font-family:Menlo">//</span> Set the root controller of the window</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(79,129,135)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(79,129,135)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(187,44,162)"></span>self<span style="color:rgb(0,0,0)">.</span> Window<span style="color:rgb(0,0,0)">.</span> <span style="color:rgb(112,61,170)">Rootviewcontroller</span> <span style="color:rgb(0,0,0)"> = </span> <span style="color:rgb(187,44,162)"></span> self <span style="color:rgb(0,0,0)">.</span> Viewcontroller<span style="color:rgb(0,0,0)">;</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><span style="font-family:Menlo; color:rgb(0,0,0)"> </span> <span style="font-family:Menlo"></span> The following code is executed inside the code above</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(0,132,0)"><span style="color:rgb(0,0,0)"> </span>//[self.window addSubview:self.viewController.view];</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><span style="font-family:Menlo; color:rgb(0,0,0)"> </span> <span style="font-family:Menlo">//</span> window does not appear by default and requires calling methods to display</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><span style="font-family:Menlo; color:rgb(0,0,0)"> </span> <span style="font-family:Menlo">//keywindow</span> is the main window, only the main window can interact with the user normally</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(61,29,129)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(61,29,129)"><span style="color:rgb(0,0,0)">[</span><span style="color:rgb(187,44,162)"></span>self<span style="color:rgb(0,0,0)">.</span> <span style="color:rgb(79,129,135)">window</span> <span style="color:rgb(0,0,0)"> </span>makekeyandvisible<span style="color:rgb(0,0,0)">];</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(0,132,0)"><span style="color:rgb(0,0,0)"> </span>//self.window.hidden = NO;</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(187,44,162)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(187,44,162)"><span style="color:rgb(0,0,0)"> </span>return<span style="color:rgb(0,0,0)"> </span>YES<span style="color:rgb(0,0,0)">;</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">}</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><br></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)">Called when the mark program loses focus <span style="font-family:Menlo">#pragma</span> (cannot interact with the User)</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">-(<span style="color:rgb(187,44,162)">void</span>) applicationwillresignactive: (<span style="color:rgb(112,61,170)">uiapplication</span> *) Application</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">{</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(61,29,129)">NSLog</span><span style="color:rgb(0,0,0)">(</span>@ "applicationwillresignactive- <span style="font-family:‘Heiti SC Light‘">loses focus</span> "<span style="color:rgb(0,0,0)">);</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">}</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><br></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)"><span style="font-family:Menlo">#pragma mark</span> is called when the application enters the background (click the <span style="font-family:Menlo">HOME</span> Button)</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">-(<span style="color:rgb(187,44,162)">void</span>) applicationdidenterbackground: (<span style="color:rgb(112,61,170)">uiapplication</span> *) Application</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">{</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(61,29,129)">NSLog</span><span style="color:rgb(0,0,0)">(</span>@ "applicationdidenterbackground- <span style="font-family:‘Heiti SC Light‘">into the background</span> "<span style="color:rgb(0,0,0)">);</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">}</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><br></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)"><span style="font-family:Menlo">#pragma mark</span> calls when the application enters the foreground</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">-(<span style="color:rgb(187,44,162)">void</span>) applicationwillenterforeground: (<span style="color:rgb(112,61,170)">uiapplication</span> *) Application</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">{</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(61,29,129)">NSLog</span><span style="color:rgb(0,0,0)">(</span>@ "applicationwillenterforeground- <span style="font-family:‘Heiti SC Light‘">Enter the front desk</span> "<span style="color:rgb(0,0,0)">);</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">}</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><br></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)"><span style="font-family:Menlo">#pragma mark</span> calls when the application gets focus</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(0,132,0)"><span style="font-family:Menlo">//</span> get focus before you can interact with the user</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">-(<span style="color:rgb(187,44,162)">void</span>) applicationdidbecomeactive: (<span style="color:rgb(112,61,170)">uiapplication</span> *) Application</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">{</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(61,29,129)">NSLog</span><span style="color:rgb(0,0,0)">(</span>@ "applicationdidbecomeactive- <span style="font-family:‘Heiti SC Light‘">get focus</span> "<span style="color:rgb(0,0,0)">);</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">}</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; min-height:13px"><br></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:‘Heiti SC Light‘; color:rgb(120,73,42)">This method is called when the <span style="font-family:Menlo">#pragma mark</span> program is terminated in some cases</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">-(<span style="color:rgb(187,44,162)">void</span>) applicationwillterminate: (<span style="color:rgb(112,61,170)">uiapplication</span> *) Application</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">{</p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; color:rgb(209,47,27)"><span style="color:rgb(0,0,0)"> </span> <span style="color:rgb(61,29,129)">NSLog</span><span style="color:rgb(0,0,0)">(</span>@ "applicationwillterminate- <span style="font-family:‘Heiti SC Light‘">is closed</span> "<span style="color:rgb(0,0,0)">);</span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo">}</p></p><br><br><br><br>After the project Starts:<br><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><strong></strong></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><span style="font-family:‘Heiti SC Light‘"><strong>first one</strong></span> <strong>IOS</strong> <span style="font-family:‘Heiti SC Light‘"><strong>program</strong></span> <strong>[517:c07] didfinishlaunchingwithoptions-</strong> <span style="font-family:‘Heiti SC Light‘"><strong>Load Complete</strong></span></p></p><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><p style="margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo"><span style="font-family:‘Heiti SC Light‘"><strong>first one</strong></span> <strong>IOS</strong> <span style="font-family:‘Heiti SC Light‘"><strong>program</strong></span> <strong>[517:c07] applicationdidbecomeactive-</strong> <span style="font-family:‘Heiti SC Light‘"><strong>Get Focus</strong></span></p></p><br><br>Press the Home button:<span style="font-size:11px; font-family:‘Heiti SC Light‘"><span style="font-size:11px; font-family:‘Heiti SC Light‘"><strong><br></strong></span></span><span style="font-size:11px; font-family:‘Heiti SC Light‘"><span style="font-size:11px; font-family:‘Heiti SC Light‘"><strong>first one</strong></span></span><span style="font-family:Menlo; font-size:11px"><span style="font-family:Menlo; font-size:11px"><strong>IOS</strong></span></span><span style="font-size:11px; font-family:‘Heiti SC Light‘"><span style="font-size:11px; font-family:‘Heiti SC Light‘"><strong>program</strong></span></span><span style="font-family:Menlo; font-size:11px"><span style="font-family:Menlo; font-size:11px"><strong>[517:c07] applicationwillresignactive-</strong></span></span><span style="font-size:11px; font-family:‘Heiti SC Light‘"><span style="font-size:11px; font-family:‘Heiti SC Light‘"><strong>Lose Focus</strong></span></span><p style="line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; background-color:rgb(199,237,204)"><p style="line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; background-color:rgb(199,237,204)"><span style="font-family:‘Heiti SC Light‘"><strong>first one</strong></span> <strong>IOS</strong> <span style="font-family:‘Heiti SC Light‘"><strong>program</strong></span> <strong>[517:c07] applicationdidenterbackground-</strong> <span style="font-family:‘Heiti SC Light‘"><strong>Go Backstage</strong></span></p></p><p style="line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; background-color:rgb(199,237,204)"><p style="line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; background-color:rgb(199,237,204)"><span style="font-family:‘Heiti SC Light‘"><strong><br></strong></span></p></p><p style="font-family:STHeiti; line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; background-color:rgb(199,237,204)"><p style="font-family:STHeiti; line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; background-color:rgb(199,237,204)"><span style="font-family:‘Heiti SC Light‘"><strong>Then press the Program:</strong></span></p></p><p style="font-family:STHeiti; line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; background-color:rgb(199,237,204)"><p style="font-family:STHeiti; line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; background-color:rgb(199,237,204)"><span style="font-family:‘Heiti SC Light‘"><strong></strong></span></p></p><p style="line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; background-color:rgb(199,237,204)"><p style="line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; background-color:rgb(199,237,204)"><span style="font-family:‘Heiti SC Light‘"><strong>first one</strong></span> <strong>IOS</strong> <span style="font-family:‘Heiti SC Light‘"><strong>program</strong></span> <strong>[517:c07] applicationwillenterforeground-</strong> <span style="font-family:‘Heiti SC Light‘"><strong>Access to reception</strong></span></p></p><p style="line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; background-color:rgb(199,237,204)"><p style="line-height:24px; margin-top:0px; margin-bottom:0px; font-size:11px; font-family:Menlo; background-color:rgb(199,237,204)"><span style="font-family:‘Heiti SC Light‘"><strong>first one</strong></span> <strong>IOS</strong> <span style="font-family:‘Heiti SC Light‘"><strong>program</strong></span> <strong>[517:c07] applicationdidbecomeactive-</strong> <span style="font-family:‘Heiti SC Light‘"><strong>Get Focus</strong></span></p></p><br style="font-family:STHeiti; font-size:14px; line-height:24px; background-color:rgb(199,237,204)"><p><p>Appdelegate Life Cycle Detailed</p></p></span>