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 hide the keyboard when I press return key in a UITextField?

Clicking in a textfield makes the keyboard appear. How do I hide it when the user presses the return key?

ios objective-c cocoa-touch delegates
How do I parse JSON with Objective-C?

I am new to iPhone. Can anyone tell me the steps to follow to parse this data and get the …

objective-c json cocoa-touch parsing
How can I scan barcodes on iOS?

How can I simply scan barcodes on iPhone and/or iPad?

ios swift iphone cocoa-touch barcode
Dismissing a Presented View Controller

I have a theoretic question. Now İ'm reading Apple's ViewController guide. They wrote: When it comes time to dismiss a …

iphone ios objective-c cocoa-touch uiviewcontroller
How to get substring of NSString?

If I want to get a value from the NSString @"value:hello World:value", what should I use? The return …

objective-c cocoa-touch nsstring
CocoaPods Errors on Project Build

I'm unable to build a project that uses CocoaPods. I get the following errors: diff: /../Podfile.lock: No such file …

objective-c cocoa-touch cocoapods build-error
How to change UIPickerView height

Is it possible to change the height of UIPickerView? Some applications seem to have shorter PickerViews but setting a smaller …

ios iphone cocoa-touch uikit uipickerview
iOS UIImagePickerController result image orientation after upload

I am testing my iPhone application on an iOS 3.1.3 iPhone. I am selecting/capturing an image using a UIImagePickerController: UIImagePickerController *…

ios iphone cocoa-touch uiimage uiimagepickercontroller
NSString property: copy or retain?

Let's say I have a class called SomeClass with a string property name: @interface SomeClass : NSObject { NSString* name; } @property (nonatomic, …

objective-c cocoa cocoa-touch
Async image loading from url inside a UITableView cell - image changes to wrong image while scrolling

I've written two ways to async load pictures inside my UITableView cell. In both cases the image will load fine …

ios objective-c cocoa-touch uitableview