Search code examples
ios4iphone-sdk-3.0uitableview

change height of custom Dynamically problem iphone


Hi every one i have use two custom cell in a table view at a time .

Cell one contains labels and buttons 

Cell Two Contain next and previous Button 

i am adding cell Two at last index of the table view my question is that how can i change the height of cell 2 dynamically

Height of Cell one is 110 and i want the height of cell two is 80 what can i do any idea??

Solution

  • check out heightForRowAtIndexPath here

    and return 110 or 80 depending on the indexPath.row