This shows you the differences between two versions of the page.
|
objective-c:foundation.framework:nsmutablearray.h:addobject [2013/06/14 01:57] Anthony created by anthony Bowman |
objective-c:foundation.framework:nsmutablearray.h:addobject [2024/02/16 01:12] (current) |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| NSMutableArray *mArray = [[NSMutableArray alloc] init]; | NSMutableArray *mArray = [[NSMutableArray alloc] init]; | ||
| - | //adding object | + | //** Adding object ** |
| [mArray addObject:@"Hello"]; | [mArray addObject:@"Hello"]; | ||
| - | // displaying the contents of the array into the console | + | //** Displaying the content of the array in console ** |
| for(id obj in mArray) { | for(id obj in mArray) { | ||
| NSLog("%@", mArray); | NSLog("%@", mArray); | ||