Great UIKit/Objective-C one-Liners

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/10 20:52 UTC
Read the original article Hit count: 372

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-liners in Objective-C for the iPhone/iPod touch/iPad here.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk-3.0