IOS:Multiple PrototypeCells in UITableView
<p>i am working in an project in which i have to create a facebook like newsfeed view after hours of R&amp;D i choose to use prototype cells in UITableView for newsfeed view now the problem in row 1 i have to show only single information whereas in second cell i have to pass an array which have multiple elements like in fb wall. in which the content of second cell is changes as par array size and first cell remain unchanged.
please suggest me any other way how can i perform all this.</p>

<pre><code>currently i am using the following code in tableview delegate methods
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}


-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 2;

}

-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSString *identifier;
    if (indexPath.row == 0)
    {
        identifier = @"OneCellId";
    }
    else if (indexPath.row == 1)
    {
        identifier = @"OtherCellId";
    }

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];


    return  cell;
}
</code></pre>

<p><a href="https://i.stack.imgur.com/zIm6h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zIm6h.png" alt="enter image description here"></a></p>