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.

IPhone/IPad: How to get screen width programmatically?

Hi I'm wondering if there's a way to get the width programmatically. I'm looking for something general enough to accomodate …

iphone objective-c cocoa-touch ipad
Get current date in milliseconds

Can any one give me an idea how to get the current date in milliseconds?

objective-c cocoa-touch ios date time
Create space at the beginning of a UITextField

I want to leave a bit of space at the beginning of a UITextField, just like here: Add lefthand margin …

ios swift cocoa-touch uitextfield
How do I create a round cornered UILabel on the iPhone?

Is there a built in way to create round-cornered UILabels? If the answer is no, how would one go about …

ios objective-c cocoa-touch uilabel rounded-corners
Can you animate a height change on a UITableViewCell when selected?

I'm using a UITableView in my iPhone app, and I have a list of people that belong to a group. …

ios cocoa-touch uitableview
What is the most robust way to force a UIView to redraw?

I have a UITableView with a list of items. Selecting an item pushes a viewController that then proceeds to do …

cocoa-touch uiview urlrequest
Clearing NSUserDefaults

I'm using +[NSUserDefaults standardUserDefaults] to store application settings. This consists of roughly a dozen string values. Is it possible to …

ios objective-c cocoa-touch nsuserdefaults
Swipe to Delete and the "More" button (like in Mail app on iOS 7)

How to create a "more" button when user swipe a cell in table view (like mail app in ios 7) I …

ios uitableview user-interface cocoa-touch swipe-gesture
Select tableview row programmatically

How do I programmatically select a UITableView row so that - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath gets executed? …

iphone objective-c cocoa-touch uitableview
How to determine the content size of a UIWebView?

I have a UIWebView with different (single page) content. I'd like to find out the CGSize of the content to …

ios iphone cocoa-touch uiwebview uikit