Я пытаюсь заполнить табличное представление NSMutableArray, и мне действительно тяжело с этим.
Думаю, все должно быть просто, но я не могу заставить его работать.
Любая помощь будет оценена.
Спасибо
Вам просто нужно создать объект, реализующий UITableViewDataSource.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [self.yourArray count]; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { /* create your cell here */ AnObjectFromYourArray *myObject = [self.yourArray objectAtIndex:[indexPath row]; /* fill the cell with the info in my object */ return yourCell; }
просто так.
Грег