Great UIKit/Objective-C code snippets

Posted by Nissan Fan on Stack Overflow See other posts from Stack Overflow or by Nissan Fan
Published on 2010-06-10T20:49:06Z Indexed on 2010/06/14 17:42 UTC
Read the original article Hit count: 478

Filed under:
|
|

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:

[UIApplication sharedApplication].applicationIconBadgeNumber = 10;

Which will display that distinctive red notification badge on your app iphone with the number 10.

Please share you favorite one or two-liners in Objective-C for the iPhone/iPod touch/iPad here. PUBLIC APIs ONLY.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk-3.0