I have an array. It is filled in one class named "SampleDataDAO".
What i need:
In the 2nd class named "MainMenu" i need to keep this code:
- (void)viewDidLoad
{
[super viewDidLoad];
daoDS = [[SampleDataDAO alloc] init];
self.ds = daoDS.PopulateDataSource;
}
And in the third class named "HView" i need to use array "ds" (NSMutableArray). But i need to use it already filled from 2nd class, to return the count of elements:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
// Return the number of rows in the section.
return ds.count;
}
Thanks for helping!