Cat Learn iOS (21) uiapplication Set program icon on top right? Red Digital _ finger-pointing device, etc.
Source: Internet
Author: User
<span id="Label3"></p><p><p>Cat share, must Boutique</p></p><p><p>Material Code Address: http://blog.csdn.net/u013357243/article/details/45092629<br>Original articles, Welcome Reprint. Reprint please specify: Sanayu's blog<br>Address: http://blog.csdn.net/u013357243?viewmode=contents</p></p>Introduction to Effects<p><p>The use of uiapplication, there are many such as: into the line? some should use level of operation and so on, open the Web page, open telephone dialing and information, etc...<br></p></p><p><p></p></p>What is UIApplication<p><p>The UIApplication object is a symbol of the Program.<br>Every one should use the UIApplication object of self-own, and is a singleton<br>This singleton object can be obtained by [uiapplication sharedapplication]<br>? An iOS program that is created after the start of an object is the UIApplication object<br>The UIApplication object, can you enter? some of the actions that should be done with the level</p></p>Uiapplication's constant? property settings should be the red reminder number in the upper right corner of the program icon<p><p>Here iOS set up a line of code, and then if Android to a heap, the cat did once, at that time to find a lot of information, climbed n blog, then to get up, and then very ugly. (the main cat Beauty 美图秀秀 not pass Ah. )</p></p><pre class="prettyprint"><pre class="prettyprint"><code class=" hljs objectivec"><span class="hljs-keyword">@property</span>(<span class="hljs-keyword">nonatomic</span><span class="hljs-built_in">NSInteger</span> applicationIconBadgeNumber;</code></pre></pre><p><p></p></p>Setting up the accessibility of the networked finger-pointing device<pre class="prettyprint"><pre class="prettyprint"><code class=" hljs objectivec"><span class="hljs-keyword">@property</span>(<span class="hljs-keyword">nonatomic</span>,getter=isNetworkActivityIndicatorVisible)<span class="hljs-built_in">BOOL</span> networkActivityIndicatorVisible;</code></pre></pre><p><p></p></p>The status bar in IOS7<p><p>Starting from iOS7, the system provides 2 ways to manage the status bar.</p></p>Through Uiviewcontroller Management<p><p>Every uiviewcontroller can have a different status bar from their own.</p></p>Through UIApplication Management<p><p>Every application. the status bar of a program is governed by it.<br>In iOS7, by default, the status bar is managed by uiviewcontroller, Uiviewcontroller implement the following? method to easily manage the visibility and style of the status bar<br>Style of the status bar</p></p><pre class="prettyprint"><pre class="prettyprint"><code class=" hljs ">(UIStatusBarStyle)preferredStatusBarStyle;</code></pre></pre><p><p>The visibility of the status bar</p></p><pre class="prettyprint"><pre class="prettyprint"><code class=" hljs erlang"><span class="hljs-pp">- <span class="hljs-params">(<span class="hljs-variable">BOOL</span>)</span>prefersStatusBarHidden;</span></code></pre></pre>You want to pay attention? UIApplication to manage the status bar, you first have to modify the Info.plist settings<p><p></p></p>OpenURL:<p><p>UIApplication has a function? very strong, big openURL:? method-(BOOL) openURL: (nsurl*) url;<br>OpenURL: What are some of the functions of the method?<br>? Call</p></p><pre class="prettyprint"><pre class="prettyprint"><code class=" hljs objectivec"><span class="hljs-built_in">UIApplication</span> *app = [<span class="hljs-built_in">UIApplication</span> sharedApplication]; [app openURL:[<span class="hljs-built_in">NSURL</span> URLWithString:@<span class="hljs-string">"tel://10086"</span>]];</code></pre></pre><p><p>? Texting</p></p><pre class="prettyprint"><pre class="prettyprint"><code class=" hljs objectivec">[app openURL:[<span class="hljs-built_in">NSURL</span> URLWithString:@<span class="hljs-string">"sms://10086"</span>]];</code></pre></pre><p><p>? Send E-mail</p></p><pre class="prettyprint"><pre class="prettyprint"><code class=" hljs objectivec">[app openURL:[<span class="hljs-built_in">NSURL</span> URLWithString:@<span class="hljs-string">"mailto://[email protected]"</span>]];</code></pre></pre><p><p>? Open a?? Web Page Resources</p></p><pre class="prettyprint"><pre class="prettyprint"><code class=" hljs objectivec">[app openURL:[<span class="hljs-built_in">NSURL</span> URLWithString:@<span class="hljs-string">"http://blog.csdn.net/u013357243?viewmode=contents"</span>]];</code></pre></pre><p><p>Ps: new iOS Exchange Learning Group: 304570962 can add cat qq:1764541256 or Znycat let's study hard together.<br>Sanayu's Blog<br>Address: http://blog.csdn.net/u013357243?viewmode=contents</p></p> <p><p>Cat Learn iOS (21) uiapplication Set program icon on top right? Red Digital _ finger-pointing device, etc.</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service