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.

Giving UIView rounded corners

My login view has a subview which has a UIActivityView and a UILabel saying "Signing In…". This subview has corners …

ios cocoa-touch uiview
How to scale a UIImageView proportionally?

I have a UIImageView and the objective is to scale it down proportionally by giving it either a height or …

objective-c cocoa-touch
Set UIButton title UILabel font size programmatically

I need to set the font size of the title UILabel of a UIButton programmatically.

objective-c cocoa-touch ios uibutton font-size
How to load a UIView using a nib file created with Interface Builder

I'm trying to do something a bit elaborate, but something that should be possible. So here is a challenge for …

iphone objective-c ios cocoa-touch interface-builder
Formatting NSDate into particular styles for both year, month, day, and hour, minute, seconds

I basically need to get current date and time separately, formatted as: 2009-04-26 11:06:54 The code below, from another question …

cocoa cocoa-touch nsdate nsdateformatter date-formatting
How to programmatically send SMS on the iPhone?

Does anybody know if it's possible, and how, to programmatically send a SMS from the iPhone, with the official SDK / …

ios objective-c cocoa-touch sms
How can I create a UIColor from a hex string?

How can I create a UIColor from a hexadecimal string format, such as #00FF00?

ios cocoa-touch uicolor
Set the maximum character length of a UITextField

How can I set the maximum amount of characters in a UITextField on the iPhone SDK when I load up …

ios objective-c cocoa-touch uitextfield
UIView with rounded corners and drop shadow?

I’ve been working on an application for a couple of years and received a simple design request: Round the …

ios cocoa-touch uiview calayer rounded-corners
UILabel text margin

I'm looking to set the left inset/margin of a UILabel and can't find a method to do so. The …

ios cocoa-touch uikit uilabel