Top "Cocoa-touch" questions

The Cocoa Touch Frameworks that drive iOS apps share many proven patterns found on the Mac, but were built with a special focus on touch-based interfaces and optimization.

How to customize the background color of a UITableViewCell?

I would like to customize the background (and maybe the border too) of all of the UITableViewCells within my UITableView. …

ios iphone uitableview cocoa-touch background-color
Eliminate extra separators below UITableView

When I set up a table view with 4 rows, there are still extra separators lines (or extra blank cells) below …

ios uitableview cocoa-touch
How do you add multi-line text to a UIButton?

I have the following code... UILabel *buttonLabel = [[UILabel alloc] initWithFrame:targetButton.bounds]; buttonLabel.text = @"Long text string"; [targetButton addSubview:buttonLabel]; […

ios cocoa-touch uibutton uikit
How to resolve 'unrecognized selector sent to instance'?

In the AppDelegate, I'm alloc'ing an instance defined in a static library. This instance has an NSString property set a "…

objective-c iphone cocoa-touch memory-management static-libraries
How to use auto-layout to move other views when a view is hidden?

I have designed my custom Cell in IB, subclassed it and connected my outlets to my custom class. I have …

ios iphone cocoa-touch interface-builder autolayout
What is the right way to check for a null string in Objective-C?

I was using this in my iPhone app if (title == nil) { // do something } but it throws some exception, and the …

ios objective-c cocoa-touch
Change string color with NSAttributedString?

I have a slider for a survey that display the following strings based on the value of the slider: "Very …

ios cocoa-touch nsattributedstring
Creating a left-arrow button (like UINavigationBar's "back" style) on a UIToolbar

I'd love to create a "back" left-arrow-bezel button in a UIToolbar. As far as I can tell, the only way …

ios iphone cocoa-touch uinavigationbar uitoolbar
How to easily resize/optimize an image size with iOS?

My application is downloading a set of image files from the network, and saving them to the local iPhone disk. …

ios objective-c image cocoa-touch resize
Gradients on UIView and UILabels On iPhone

Possible Duplicate: Manually drawing a gradient in iPhone apps? My application needs to display text in either a UIView or …

iphone ios cocoa-touch gradient