Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone + UITableView + row height

Tags:

I am setting the row height of my UITableView using following code

[tableView setRowHeight: 100.00]; 

I am using the single line as separator in the UITableView.

Eventhough setting the height above, height of row does not get change.

like image 757
pratik Avatar asked Oct 28 '09 08:10

pratik


People also ask

How can I get UITableView height?

Use contentSize. height property of UITableView . I think you want to set the whole tableview with content size and then set the scrollview size related content of UITableView and for this use bellow code... After add data or reloadData in UITableView just set bellow code..

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.

What is UITableView?

UITableView manages the basic appearance of the table, but your app provides the cells ( UITableViewCell objects) that display the actual content. The standard cell configurations display a simple combination of text and images, but you can define custom cells that display any content you want.


1 Answers

You should implement

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

delegate method. and return 100.0 there.

like image 113
Morion Avatar answered Oct 03 '22 17:10

Morion