Skip to content
hiaw edited this page Jun 30, 2011 · 3 revisions

It's difficult to exactly describe what this code does. So I'll just show it.

Let say you want to create a custom menu/setting with table view which looks like below. It's not too difficult. Initial Table

The difficulty comes when you start to show and hide different rows like here which I hide "Remove advertising" because the user's already purchased that option and would not need it in the future.

Second Screenshot

And here is another case where I want extra rows to show up after user purchase "Dropbox Sync" option. To program such logic manually would require lots of if and switch logic and it mesh up my head a bit.

Third Screenshot

This is a simple case of just swapping the row with a different row to show sync progress. By using the DCCustomTableView. All these logic can be done more easily. Read the code of how it's implemented.

Trigger top row

Clone this wiki locally