Is there a way to force NSMutableArray to hold one specific object type only? I have classes definitions as follow:
I am getting an error \'Attempt to mutate immutable object with appendString:\' and my code is NSMutableString *resultString= [[NSMutableString alloc]init];
I am populating a picker with values from a plist file. the format of plist is as below. <?xml version=\"1.0\" encoding=\"UTF-8\"?>
i\'m putting strings (which are filenames of files in a certain directory) into an NSMutableArray with a for loop:
I updated to cocos2d from 0.99.4 to 0.99.5. While it was on the older version I had the high score list working and I was able to add the NSDictionary to NSMutableArray with no problems.
I\'m making a scoreboard for my game. And when I do a NSLog of the data it comes out as this: { name = TTY;
How would one pass a NSMutableArray via method return. I have it passing the array \"spaces\" so an array of 10 objects passes the 10 blocks but none of the information contained in those objects.
How can an object be added at a spec开发者_运维百科ific index of an NSMutableArray? How is an object added to the front of the array?[myMutableArray insertObject:myObject atIndex:42];
I have an NSMutableArray defined as a property, synthesized and I have assigned a newly created instance of an NSMutableArray. But after this my application always crashes whenever I try adding an obj
i have an array and i want to extract value of array开发者_C百科 at specific index like: NSString Val1 = Array1[index1];