title: Great UIKit/Objective-C code snippets
body: <p>New to Objective-C iPhone/iPod touch/iPad development, but I'm starting to discover lots of power in one-liners of code such as this:</p>
  
  <pre><code>[UIApplication sharedApplication].applicationIconBadgeNumber = 10;
  </code></pre>
  
  <p>Which will display that distinctive red notification badge on your app iphone with the number 10.</p>
  
  <p>Please share you favorite one or two-liners in Objective-C for the iPhone/iPod touch/iPad here.  <strong>PUBLIC APIs ONLY</strong>.</p>