expandable row in uitableview

Discussion in 'iPhone/iPad Programming' started by chhoda, Jun 29, 2010.

  1. macrumors 6502

    Joined:
    Oct 25, 2008
    #1
    Hi All.

    I have an UITableView which looks monotonous in all rows. On click of the rows i am presenting a viewcontroller.view through navigationcontroller.

    now, i need something like this. on click of the row [uitableviewcell] it should expand and show some info. i click once more/ it shrinks and closes info. if i click another cell, that cell expands and this previously expanded row shrinks.

    Can anybody give some pointers on how to achieve this ?

    Thanks in advance

    --CH
     
  2. macrumors 6502

    seepel

    Joined:
    Dec 22, 2009
    #2
    In UiTableviewDelegate have a look at
    Code:
    tableview:heightForRowAtIndexPath:
    and in UITableview have a look at
    Code:
    reloadRowsForIndexPaths:withRowAnimation:
     

Share This Page