1

Using InAppSettingsKit (2.8 branch), how should I implement my own cellForRowAtIndexPath for that kind of setting's type (PSMultiValueSpecifier) ?

    <dict>
        <key>DefaultValue</key>
        <integer>0</integer>
        <key>Key</key>
        <string>theme</string>
        <key>Title</key>
        <string>Theme</string>
        <key>Titles</key>
        <array>
            <string>Light</string>
            <string>Dark</string>
        </array>
        <key>Type</key>
        <string>PSMultiValueSpecifier</string>
        <key>Values</key>
        <array>
            <integer>0</integer>
            <integer>1</integer>
        </array>
    </dict>

I need to reconfigure all the cell to apply the current theme but I can't find a way to subclass (or provide the name of a subclass) to the IASKSpecifierValuesViewController used to display the different choices on setting of type "PSMultiValueSpecifier"

Thanks!

4

1 回答 1

1

实现这一点的最佳方法是通过子类化IASKSpecifierValuesViewController并将您的子类用作自定义视图控制器。当然你必须通过实现委托方法来分配currentSpecifiersettingsReader并且settingsStore当用户选择自定义子窗格时settingsViewController:tableView:didSelectCustomViewSpecifier:。看看IASKAppSettingsViewController.m:711-718需要做什么。

于 2017-11-13T13:59:15.730 回答