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.

#define vs const in Objective-C

I'm new to Objective-C, and I have a few questions regarding const and the preprocessing directive #define. First, I found …

objective-c constants c-preprocessor
UITableViewCell show white background and cannot be modified on iOS7

I've implemented a custom table view cell class that inherit from UITableViewCell. The tableview contains a background image, so I …

ios objective-c cocoa-touch ios7
Minimum and maximum date in UIDatePicker

I want to get the minimum and maximum date from a date picker, but minimum date should be "- 18" of …

ios objective-c nsdate nsdatepicker
Objective-C: Where to remove observer for NSNotification?

I have an objective C class. In it, I created a init method and set up a NSNotification in it //…

objective-c ios nsnotifications
UIRefreshControl without UITableViewController

Just curious, as it doesn't immediately seem possible, but is there a sneaky way to leverage the new iOS 6 UIRefreshControl …

objective-c ios uitableview ios6 uirefreshcontrol
Use C++ with Cocoa Instead of Objective-C?

I would like to write applications that use C++ and the Cocoa frameworks because Apple is not making Carbon 64-bit …

c++ objective-c cocoa language-interoperability
Any way to bold part of a NSString?

Is there any way to bold only part of a string? For example: Approximate Distance: 120m away Thanks!

objective-c ios nsstring
How do I create a category in Xcode 6 or higher?

I want to create a category on UIColor in my app using Xcode 6. But the thing is that in Xcode 6 …

ios objective-c categories xcode6
iOS Buttons - add border

I am making my app ready for iOS7. I did conversion and was working with a user. The button in …

ios objective-c ios7 uibutton
In Objective-C, what is the equivalent of Java's "instanceof" keyword?

I would like to check whether an object (e.g. someObject) is assignable (cast-able) to a variable of another type (…

objective-c types casting equality downcast