I want to add a structure to arrays. The following is my structure
struct Nodes {
NSInteger nodeGridNumber;
Boolean visited;
struct Nodes *nextNode;
};
Can any one with help with this. Thanks
Use :
Nodes *node = [Nodes alloc];
NSMutableArray *arr =[[NSMutableArray alloc]init];
[arr addObject:node];