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.

Using Predicate in Swift

I'm working through the tutorial here (learning Swift) for my first app: http://www.appcoda.com/search-bar-tutorial-ios7/ I'm stuck on …

ios objective-c swift ios7 predicate
Convert a string into an int

I'm having trouble converting a string into an integer. I googled it but all I can find is how to …

ios objective-c xcode ios4
UIButton: how to center an image and a text using imageEdgeInsets and titleEdgeInsets?

If I put only an image in a button and set the imageEdgeInsets more close to the top, the image …

ios objective-c uibutton
When to use NSInteger vs. int

When should I be using NSInteger vs. int when developing for iOS? I see in the Apple sample code they …

ios objective-c types nsinteger
Using NSLog for debugging

I have the following code snippet in my Xcode: NSString *digit [[sender titlelabel] text]; NSLog([digit]); I tried to build …

objective-c xcode debugging nslog
ObjectiveC Parse Integer from String

I'm trying to extract a string (which contains an integer) from an array and then use it as an int …

iphone objective-c string int
receiver type *** for instance message is a forward declaration

In my iOS5 app, I have NSObject States class, and trying to init it: states = [states init]; here is init …

iphone ios objective-c forward-declaration
How do I create a round cornered UILabel on the iPhone?

Is there a built in way to create round-cornered UILabels? If the answer is no, how would one go about …

ios objective-c cocoa-touch uilabel rounded-corners
UICollectionView cell selection and cell reuse

Upon cell selection, I want to handle changing the cell appearance. I figured the delegate method collectionView:didSelectItemAtIndexPath: & collectionView:…

ios objective-c uicollectionview
@import vs #import - iOS 7

I am playing around with some of the new iOS 7 features and working with some of the Image Effects as …

ios objective-c import ios7