
how can we initialize array in objective with some object ??? and give me also way to print the Array!!!

hello, you can initialize the array by this code
// in your .h @interface Class : NSObject { NSArray *arraylist; } @property (nonatomic, retain) NSArray *arraylist;
// in your .m
@synthesize arraylist;
- (void) dealloc {[list release];
[super dealloc];
}
// whereever you set it up ( init most likely ):
NSArray *temp = [[NSArray alloc] initWithObjects: NSNumber numberWithInt:1],
[NSNumber numberWithInt:2],print("code sample");`[NSNumber numberWithInt:3], nil];
self.arraylist = temp;
[temp release];
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.