A very newbie in XCOde.. Currently Im using 4.2. Im making a walk through of an app that do specific function. Im just doing step by step process how the app should work/flow.
I just want to know how to hide/unhide specific table cell/row once a button or segmented control is clicked. Hope you could give a sample.
These are my sample table cells/rows
if (indexPath.row == 0){cell.textLabel.text = @"angel";}
if (indexPath.row == 1){cell.textLabel.text = @"bird";}
if (indexPath.row == 2){cell.textLabel.text = @"dog";}
if (indexPath.row == 3){cell.textLabel.text = @"elephant";}
if (indexPath.row == 4){cell.textLabel.text = @"flower";}
I just want row2 or any row to be hidden once a button or segmented control is clicked. Vise versa, unhide the row/cell again once a button/segmented control is clicked button is clicked.
Many thanks for immediate responce!!