I am new to iOS. I am practicing objective-c and made my custom UITableViewCell. It has some height rather then its default height i.e height is 120. But when I run the program, cells are shown on their default height. I only have written some code as follows and I am using xib to design custom cell. I can share screenshot if required. Thanks

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

    static NSString *CellIdentifier = @"CustomCell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
        cell = [topLevelObjects objectAtIndex:0];
    }

    return cell;
}

```

**Edit** In one of my project I have not implemented heightforrowatindexpath method. Why should I have to implement in another project. Is is necessary?? Please guide.