XCode: NSMutableArray change object at index

It happens very often that I'm searching long time for the suitable method and when I see it it's quite obvious. But don't doubt your skills ;-)
To change or replace the object of a NSMutableArray at a certain index you simply use:

[_myMutableArray replaceObjectAtIndex:myIndex withObject:_myNewObject]; 

Werbung



comments powered by Disqus

Copyright Dunkel & Iwer GbR | Datenschutzerklärung | Impressum