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.

Making the iPhone vibrate

How can the iPhone be set to vibrate once? For example, when a player loses a life or the game …

ios cocoa-touch avfoundation vibration
Is it possible to disable floating headers in UITableView with UITableViewStylePlain?

I'm using a UITableView to layout content 'pages'. I'm using the headers of the table view to layout certain images …

ios objective-c iphone cocoa-touch uikit
iPhone - Get Position of UIView within entire UIWindow

The position of a UIView can obviously be determined by view.center or view.frame etc. but this only returns …

iphone cocoa-touch ios uiview uiwindow
Passing parameters to addTarget:action:forControlEvents

I am using addTarget:action:forControlEvents like this: [newsButton addTarget:self action:@selector(switchToNewsDetails) forControlEvents:UIControlEventTouchUpInside];

ios objective-c iphone cocoa-touch uicontrolevents
CGContextDrawImage draws image upside down when passed UIImage.CGImage

Does anyone know why CGContextDrawImage would be drawing my image upside down? I am loading an image in from my …

ios cocoa-touch core-graphics cgcontextdrawimage
How to send json data in the Http request using NSURLRequest

I'm new to objective-c and I'm starting to put a great deal of effort into request/response as of recent. …

iphone objective-c cocoa-touch json nsurlrequest
scale Image in an UIButton to AspectFit?

I want to add an image to a UIButton, and also want to scale my image to fit with the …

ios objective-c cocoa-touch uibutton uikit
Adding the "Clear" Button to an iPhone UITextField

How do you add that little "X" button on the right side of a UITextField that clears the text? I …

ios cocoa-touch uitextfield uikit
in iPhone App How to detect the screen resolution of the device

In iPhone App, while running the App on device How to detect the screen resolution of the device on which …

ios objective-c cocoa-touch
How do I scroll the UIScrollView when the keyboard appears?

I'm having trouble with my code. I'm trying to move the UIScrollView when I'm editing an UITextField that should be …

ios objective-c iphone cocoa-touch scrollview