Top "Objective-c" questions

This tag should be used only on questions that are about Objective-C features or depend on code in the language.

How to cast an object in Objective-C

Is there a way to cast objects in objective-c much like the way objects are cast in VB.NET? For …

objective-c
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 do I define and use an ENUM in Objective-C?

I declared an enum in my implementation file as shown below, and declared a variable of that type in my …

iphone objective-c c
How to add to an NSDictionary

I was using a NSMutableArray and realized that using a dictionary is a lot simpler for what I am trying …

iphone objective-c nsdictionary
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
IBOutlet and IBAction

What is the purpose of using IBOutlets and IBActions in Xcode and Interface Builder? Does it make any difference if …

objective-c swift interface-builder iboutlet ibaction
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
iOS start Background Thread

I have a small sqlitedb in my iOS device. When a user presses a button, I fetch the data from …

objective-c ios multithreading uikit core-foundation
How do I auto size a UIScrollView to fit its content

Is there a way to make a UIScrollView auto-adjust to the height (or width) of the content it's scrolling? Something …

iphone ios objective-c cocoa-touch uiscrollview