2 różne typy niestandardowych UITableViewCells w UITableView

w moim UITableView chcę ustawić dla pierwszej wiadomości o RSS rss niestandardowy tableViewCell (powiedzmy typ A) i dla innych wiadomości drugi, trzeci itd .. inny niestandardowy tableViewCell (trype B) problem polega na tym, że niestandardowy tableViewCell ( trype A) stworzony dla pierwszej wiadomości jest ponownie wykorzystywany, ale co ciekawe liczba wierszy między pierwszym użyciem customViewCell (typ A) a drugim pojawieniem się tego samego typu customViewCell nie jest równa.

mój cellForRowAtIndexPath wygląda tak.

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

    int feedIndex = [indexPath indexAtPosition:[indexPath length] - 1];
    Feed *item = [[[[self selectedButton] category] feedsList] objectAtIndex:feedIndex + 1];
    static NSString *CellIdentifier = @"Cell";

    if(feedIndex == 0){
        MainArticleTableViewCell *cell = (MainArticleTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];

        if (cell == nil)
        {
            cell = [[[MainArticleTableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
            [[[cell subviews] objectAtIndex:0] setTag:111];
        }

        cell.feed = item;

        return cell;

    }
    else{
        NewsTableViewCell *cell = (NewsTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];

        if (cell == nil)
        {
            cell = [[[NewsTableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier orientation:currentOrientation] autorelease];
            [[[cell subviews] objectAtIndex:0] setTag:111];
        }

        cell.feed = item;

        return cell;

    }
    return nil;
}    

dwa typy komórek mają różne wysokości, które są ustawione prawidłowo. czy ktoś mógłby wskazać mi właściwy kierunek, w jaki sposób uczynić typ A niestandardową komórką, aby pojawił się tylko dla pierwszych wiadomości (nie wykorzystywanych ponownie)? Dziękuję Ci

questionAnswers(3)

yourAnswerToTheQuestion