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.

Cropping an UIImage

I've got some code that resizes an image so I can get a scaled chunk of the center of the …

ios objective-c cocoa-touch uiimagepickercontroller image-manipulation
Save string to the NSUserDefaults?

How to save a string into the NSUserDefaults?

ios cocoa-touch nsuserdefaults
How to scroll to the bottom of a UITableView on the iPhone before the view appears

I have a UITableView that is populated with cells of a variable height. I would like the table to scroll …

ios objective-c cocoa-touch uitableview
"Unknown class <MyClass> in Interface Builder file" error at runtime

Even though Interface Builder is aware of a MyClass, I get an error when starting the application. This happens when …

cocoa cocoa-touch xcode interface-builder
When is layoutSubviews called?

I have a custom view that's not getting layoutSubview messages during animation. I have a view that fills the screen. …

ios cocoa-touch autolayout bounds layoutsubviews
convert UIImage to NSData

I am using this code in my app which will help me to send a image. However, I have an …

objective-c ios ipad cocoa-touch nsdata
How can I delay a method call for 1 second?

Is there an easy way delay a method call for 1 second? I have a UIImageView that reacts on a touch …

ios objective-c iphone cocoa-touch uikit
@class vs. #import

It is to my understanding that one should use a forward-class declaration in the event ClassA needs to include a …

objective-c cocoa cocoa-touch
Can I write native iPhone apps using Python?

Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using …

iphone python cocoa-touch
Adding a simple UIAlertView

What is some starter code I could use to make a simple UIAlertView with one "OK" button on it?

ios objective-c iphone cocoa-touch uialertview