Top "Nsmutablearray" questions

NSMutableArray represents a modifiable (mutable) array object for Cocoa and Cocoa Touch.

How do I reverse the order of objects in an NSMutableArray?

I'm trying to achieve something like this NSMutableArray *myArray = [NSMutableArray arrayWithObjects:@"A",@"B",@"C", nil]; NSLog(@"Array: %@", myArray); //logs A, …

cocoa nsmutablearray
NSMutableArray add Object as pointer only?

I have this little code NSMutableArray *myArray = [[NSMutableArray alloc] init]; NSNumber *myNumber = [NSNumber numberWithDouble:752.65]; [myArray addObject:myNumber]; With this code …

objective-c cocoa nsmutablearray nsnumber
How to get index of an item in an array

I am having array called stored and I want to access their indexes so that I can select them individually …

iphone xcode nsmutablearray
Is Objective-C's NSMutableArray thread-safe?

I've been trying to fix this crash for almost a week. The application crashes without any exception or stack-trace. The …

objective-c ios multithreading nsmutablearray
Check if NSDictionary is empty

I want to check if an NSDictionary is empty. I am doing it like this. mutDictValues = [[[NSUserDefaults standardUserDefaults] objectForKey:@"dicValues"]…

iphone ios objective-c nsmutablearray nsdictionary
IOS: NSMutableArray initWithCapacity

I have this situation array = [[NSMutableArray alloc] initWithCapacity:4]; //in viewDidLoad if (index == 0){ [array insertObject:object atIndex:0]; } if (index == 1){ [array insertObject:…

objective-c xcode ios nsmutablearray init
Attempt to insert non-property value Objective C

Hi l am trying to create a fourates lists from an restaurants Object, my application has a list of different …

ios objective-c nsmutablearray nsuserdefaults property-list
How to copy a NSMutableArray

I would simply like to know how to copy a NSMutableArray so that when I change the array, my reference …

iphone xcode copy nsmutablearray deep-copy
Add an object to the beginning of an NSMutableArray?

Is there an efficient way to add an object to start of an NSMutableArray? I am looking for a good …

iphone objective-c ios nsmutablearray deque