futuretap/InAppSettingsKit — Issue #105: How to customize tableSectionHeaders
Author: diederich
Created: 2011-11-15 14:55:01+00:00
State: open

I'm trying to customize some tableSectionHeaders but there seem to be a few issues and I'm not really sure about how to solve them.
While IASKSettingsDelegate allows the user of IASKSettingsViewController to customize the table section headers, it seems to miss to pass proper information:

* it passes the key of an entry, but there's no way back to the sectionIndex and thus no way back to the original title of a PSGroupSpecifier (say you want to use it's title, but only customize the layout/appearance). This can be easily resolved by providing either a way back to the sectionIndex (http://pastebin.com/2kGUCKhZ), or by not passing the key, but directly the sectionIndex (see https://github.com/futuretap/InAppSettingsKit/blob/master/InAppSettingsKit/Controllers/IASKAppSettingsViewController.m#L327)

* if a childPane is used (like in the demo app, e.g. Complete.plist), there seems to be no way to access the right settingsStore. This could be fixed by providing a context in IASKSettingsDelegate methods, where the first parameter is the calling instance of IASKSettingsViewController.

Is there a way of customizing the section header without those mentioned issues above? Does it make sense to add the calling controller to the delegate methods?