Search code examples
iosinappsettingskit

InAppSettingsKit - How to refresh titles/values programmatically?


I am using the titlesForSpecifier feature to feed titles into IASK dynamically. My titles array needs to be refreshed when another setting change.

e.g. list of state code for selection needs to be refreshed if user changes the country code.

Any ideas?


Solution

  • Reading the code it should be fine to reset the multipleValues property of your specifier to nil. That should trigger reloading the titles from the delegate. Now to make UITableView refresh the cells, either use reloadData or reloadRows(at:with:).