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 add commas to number every 3 digits in Objective C?

If I have a number int aNum = 2000000 how do I format this so that I can display it as the …

objective-c nsstring
Setting up buttons in SKScene

I'm discovering that UIButtons don't work very well with SKScene, So I'm attempting to subclass SKNode to make a button …

ios objective-c uibutton sprite-kit
Class is implemented in both. One of the two will be used

I have a project that has a dependency (installed via CocoaPods) using SocketRocket and have imported a static library from …

ios objective-c objective-c-runtime socketrocket
Implicit declaration of function - C99

I am currently using Xcode 4, and in my .pch file I have this macro: #define localize(s) NSLocalizedString((s), nil). …

objective-c xcode macros c99 pch
How to remove the last border of the last cell in UITableView?

In my app, I use a UITableView My problem is that I want to remove the last border of the …

iphone objective-c ios xcode uitableview
How can I check if an object in an NSArray is NSNull?

I am getting an array with null value. Please check the structure of my array below: ( "< null>" ) When …

ios objective-c nsarray nsnull
Underline part of a string using NSMutableAttributedString in iOS 8 is not working

I try to underline part of a string, for example, a 'string' part in 'test string' string. I'm using NSMutableAttributedString …

ios objective-c iphone ios8 nsmutableattributedstring
Fitting a UIDatePicker into a UIActionSheet

I'm trying to get a UIDatePicker with a UIButton to show up in a UIActionSheet. Unfortunately it gets cropped off …

objective-c iphone cocoa-touch uidatepicker
Default value of BOOL

What is the default value of a BOOL variable in Objective-C?

objective-c initialization boolean
Removing item from array by property value

I'm looking for the most efficient and memory friendly way. Let's say I have an array of Person objects. Each …

ios objective-c nsarray nsmutablearray