Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Height of a UITableViewCell

I want to make a UITableViewCell bigger. How can I do this, I have tried adjusting its frame but nothing happens. What can I do?

like image 635
user973985 Avatar asked Dec 17 '11 09:12

user973985


People also ask

How do I change cell height in Swift?

To change the height of tableView cell in ios dynamically, i.e resizing the cell according to the content available, we'll need to make use of automatic dimension property. We'll see this with the help of an sample project.


1 Answers

You need to implement the

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

method in your UITableViewDelegate.

like image 114
Shane Powell Avatar answered Oct 10 '22 20:10

Shane Powell