Take in a array from another class
I have this code for my table view:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
NSArray *array = [[NSArray alloc] initWithObjects:@"Kupong 1",@"Kupong
2",@"Kupong 3",@"Kupong 4", @"Kupong 5", @"Kupong 5",@"Kupong
6",@"Kupong 7",@"Kupong 8",nil];
self.kupongArray = array;
self.title = @"Kupong";
}
but I want to change the array to a different array from another class,
how can I do this?
No comments:
Post a Comment