Great UIKit/Objective-C one-Liners
- by Nissan Fan
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.