I want to create an Objective-C Class
of type NSArray
but i dont know how to initialize it or how to add data in.
I did the following:
1- Create a new File
2-I had chosen Objective-C Class
3-I had chosen a Subclass of
of type NSArray
Two Files Appear:
.h:
#import <Foundation/Foundation.h>
@interface ArrayClass : NSArray
@end
.m
#import "ArrayClass.h"
@implementation ArrayClass
@end
My question is: What is the next steps.
1- what methods to call in this class.
2- how to initialize the array.
3- is -(id)init
Enough for it
EDIT:
i have a parser in my ViewController
and i need to initialize another one with a different XML link, so thats why i need to have a new class with a NSArray
type
Thanks in advance.