Home Answers Viewqa Mobile-Applications replaceObjectAtIndex

 
 


Java Coder
replaceObjectAtIndex
1 Answer(s)      a year and 2 months ago
Posted in : MobileApplications

How to write nsmutablearray replaceobjectatindex withobject?

View Answers

March 28, 2012 at 12:29 PM


myModel = [NSMutableArray arrayWithObjects:@"3 animals", @"dog", @"cat", @"chicken", nil];
// here, wherever else my model is altered:
[myModel replaceObjectAtIndex:0 withObject:[NSString stringWithFormat:@"%d animals", myModel.count-1]];









Related Pages:
replaceObjectAtIndex
replaceObjectAtIndex  How to write nsmutablearray replaceobjectatindex withobject?   myModel = [NSMutableArray arrayWithObjects:@"3 animals...: [myModel replaceObjectAtIndex:0 withObject:[NSString stringWithFormat:@"%d
NSMutableArray change object at Index
, it's fine to do like that) [allMessageArray replaceObjectAtIndex:index

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.