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.

What does the "__block" keyword mean?

What exactly does the __block keyword in Objective-C mean? I know it allows you to modify variables within blocks, but …

objective-c ios objective-c-blocks
NSAttributedString add text alignment

How can I add text alignment attribute to an NSAttributedString to center the text? Edit: Am I doing anything wrong? …

ios objective-c nsattributedstring core-text
Is It Possible to NSLog C Structs (Like CGRect or CGPoint)?

I want to be able to debug C structures without having to explicitly type every property that they consist of. …

c objective-c cocoa cocoa-touch
accessing a file using [NSBundle mainBundle] pathForResource: ofType:inDirectory:

I have a file paylines.txt added inside the folder named TextFiles which resides inside the Resources folder of my …

objective-c ios xcode filepath nsbundle
Remove empty space before cells in UITableView

I am currently trying to put a UITableView in a different location rather than at the top of my view …

ios objective-c uitableview ios7
UIGestureRecognizer on UIImageView

I have a UIImageView, which I want to be able to resize and rotate etc. Can a UIGestureRecognizer be added …

ios objective-c uiimageview uigesturerecognizer
Getting reference to the top-most view/window in iOS application

I'm creating a reusable framework for displaying notifications in an iOS application. I'd like the notification views to be added …

objective-c uiview ios uiwindow
Getting a list of files in a directory with a glob

For some crazy reason I can't find a way to get a list of files with a glob for a …

ios objective-c iphone cocoa cocoa-touch
Using NSPredicate to filter an NSArray based on NSDictionary keys

I have an array of dictionaries. I want to filter the array based on a key. I tried this: NSPredicate *…

objective-c cocoa nsarray nsdictionary nspredicate
libxml/tree.h no such file or directory

I am getting following errors. libxml/tree.h no such file or directory I have already added libxml2.dylib to …

objective-c iphone xcode libxml2