Earlier this evening I put together a convenient little class, ViewOptions, that allows you to toggle the columns on a table view. Here’s what it looks like:
Usage is simple:
[[ViewOptions viewOptions] showViewOptionsForTableView:oYourTableView];
And thats really all there is to it.
Update 9/3/08: I just fixed a fatal design flaw that prevent this class from working properly: Because selection was disabled it was impossible to toggle the checkboxes.
You are free to use, modify, and distribute the above code in binary or source without restrictions, provided that you understand the creator is not liable in any size, shape, or form.
