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 replace an object in an NSMutableArray at a given index with a new object

I have an NSMutableArray object (retained, synthesized as all) that is initiated just fine and I can easily add objects …

ios objective-c nsarray
How to create a UIScrollView Programmatically?

Alright, so the key here is I'm not using IB at all, because the View I'm working with is created …

iphone objective-c uiscrollview
why didRegisterForRemoteNotificationsWithDeviceToken is not called

I am making an application in which I want to implement apple push notification service. I am following the step-by-step …

objective-c apple-push-notifications
How to append values to an array in Objective-C

I'm doing this: for(int i=0;i>count;i++) { NSArray *temp=[[NSArray alloc]initWIthObjects]i,nil]; NSLog(@"%i",temp); } …

objective-c nsmutablearray
How to add string objects to NSMutableArray

I have an NSMutableArray named randomSelection: NSMutableArray *randomSelection; I am then trying to add strings to this array if certain …

objective-c nsmutablearray
Remove whitespace from string in Objective-C

I have a couple of strings. Some have a whitespace in the beginning and some not. I want to check …

objective-c string whitespace
NSPredicate: filtering objects by day of NSDate property

I have a Core Data model with an NSDate property. I want to filter the database by day. I assume …

objective-c core-data nsdate nspredicate nsfetchedresultscontroller
In a storyboard, how do I make a custom cell for use with multiple controllers?

I'm trying to use storyboards in an app I'm working on. In the app there are Lists and Users and …

objective-c ios uitableview storyboard
Block Declaration Syntax List

Block syntax in Objective C (and indeed C, I presume) is notoriously incongruous. Passing blocks as arguments looks different than …

objective-c syntax objective-c-blocks