Uitableview tableview中的不同数组

Uitableview tableview中的不同数组,uitableview,tableview,Uitableview,Tableview,我不确定这3个方法中的问题在哪里,但当我尝试推送时,abeliaArray将代替其他数组运行。我还有其他数组,但当我按下这些数组时,abeliaArray中的对象将显示,而不是该数组的对象。添加abeliaArrayabeliaArray=[[NSMutableArray alloc]initWithObjects:@“Abelia grandiflora'Rika1'”、@“Abelia Chinese”、@“Abelia x'Edward Goucher'、@“Abelia x'Mardi

我不确定这3个方法中的问题在哪里,但当我尝试推送时,abeliaArray将代替其他数组运行。我还有其他数组,但当我按下这些数组时,abeliaArray中的对象将显示,而不是该数组的对象。

添加abeliaArrayabeliaArray=[[NSMutableArray alloc]initWithObjects:@“Abelia grandiflora'Rika1'”、@“Abelia Chinese”、@“Abelia x'Edward Goucher'、@“Abelia x'Mardi Gras”@“Abelia x Rose Creek”、“Abelia x grandiflora”、“Abelia x grandiflora‘万花筒’”、“Abelia x grandiflora‘小理查德’”、“Abelia x grandiflora‘Prostrata’”、“Abelia x grandiflora‘Sunrise’”、“Abelia x grandiflora‘Sunrise’”,无];abeliophyllumArray=[NSMutableArray alloc]initWithObjects:“Abeliophyllum distichum”Abeliophyllum distichum'Roseum',nil];当我按下Abeliophyllum数组时,其中有2个数组,abelia数组内容将出现
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([segue.identifier isEqualToString:@"Abelia"]) {
        if ([[segue destinationViewController] isKindOfClass:[SpeciesViewController class]]) {
            SpeciesViewController *Species = (SpeciesViewController *)[segue destinationViewController];
            Species.SpeciesInt = 0;
            }
        } 
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection: (NSInteger)section
{
    if (SpeciesInt == 0)
        return [abeliaArray count];
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{

    static NSString *CellIdentifier = @"SpeciesNameCell";

    SpeciesNameCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (cell == nil) {
        cell = [[SpeciesNameCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"SpeciesNameCell"];

        [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
    }

    if (SpeciesInt == 0)
        cell.SpeciesNameLabel.text = [abeliaArray objectAtIndex:indexPath.row];

    return cell;
}