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.

The best way to remove duplicate values from NSMutableArray in Objective-C?

The best way to remove duplicate values (NSString) from NSMutableArray in Objective-C? Is this the easiest and right way to …

ios objective-c nsmutablearray
How to set background image of a view?

I am a beginner at Obj-C/Cocoa Touch/iPhone OS. I wish to have a background for my app with …

iphone objective-c uiview uiimageview
How does cellForRowAtIndexPath work?

I HAVE READ apple documentation and it's not understandable for such a beginner in Objective-C as me. I'm trying to …

ios objective-c uitableview multiple-columns
Paging UICollectionView by cells, not screen

I have UICollectionView with horizontal scrolling and there are always 2 cells side-by-side per the entire screen. I need the scrolling …

ios objective-c uicollectionview uicollectionviewlayout
iPhone UILabel text soft shadow

I know soft shadows are not supported by the UILabel out of the box, on the iPhone. So what would …

iphone objective-c iphone-sdk-3.0 uilabel shadow
NSUserDefaults - How to tell if a key exists

I'm working on a small iPhone app, and I am using NSUserDefaults as my data persistence. It only has to …

ios objective-c iphone nsuserdefaults
Include of non-modular header inside framework module

I am using Xcode 6, 1) Firstly I am creating a dynamic library (CoreLibrary). This library contain RequestPoster.h file. 2) Then I …

objective-c cocoa-touch
Use of alloc init instead of new

Learning Objective-C and reading sample code, I notice that objects are usually created using this method: SomeObject *myObject = [[SomeObject alloc] …

objective-c oop
How to customize the background/border colors of a grouped table view cell?

I would like to customize both the background and the border color of a grouped-style UITableView. I was able to …

ios objective-c iphone uitableview cocoa-touch
Set UILabel line spacing

How can I modify the gap between lines (line spacing) in a multiline UILabel?

ios objective-c uilabel multiline line-spacing