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.

Assign a variable inside a Block to a variable outside a Block

I'm getting an error Variable is not assignable (missing __block type specifier) on the line aPerson = participant;. How can I …

objective-c compiler-errors objective-c-blocks
Cannot hide status bar in iOS7

I just upgraded my iPhone 5 iOS 7 to four beta version. Now when I run my app from Xcode 5 on this …

objective-c statusbar ios7
How to force NSLocalizedString to use a specific language

On iPhone NSLocalizedString returns the string in the language of the iPhone. Is it possible to force NSLocalizedString to use …

ios objective-c localization internationalization nslocalizedstring
UICollectionView current visible cell index

I am using UICollectionView first time in my iPad application. I have set UICollectionView such that its size and cell …

ios objective-c ipad uicollectionview
Creating layout constraints programmatically

I know that a lot people already asked tons of questions about this, but even with the answers I can't …

objective-c ios constraints autolayout
iPhone: Setting Navigation Bar Title

Hey all. I'm still pretty new to iPhone development, and I'm having a bit of trouble figuring out how to …

iphone objective-c uinavigationcontroller uinavigationbar uinavigationitem
How do I test which class an object is in Objective-C?

How do I test whether an object is an instance of a particular class in Objective-C? Let's say I want …

objective-c
How to compare two NSDates: Which is more recent?

I am trying to achieve a dropBox sync and need to compare the dates of two files. One is on …

iphone objective-c cocoa-touch nsdate
How to center a subview of UIView

I have a UIView inside a UIViewm and I want the inner UIView to be always centered inside the outer …

iphone objective-c ios ipad
How do I declare class-level properties in Objective-C?

Maybe this is obvious, but I don't know how to declare class properties in Objective-C. I need to cache per-class …

objective-c cocoa oop