Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic footer help depending on chosen radio option #454

Open
jphorn opened this issue Jul 6, 2016 · 2 comments
Open

Dynamic footer help depending on chosen radio option #454

jphorn opened this issue Jul 6, 2016 · 2 comments

Comments

@jphorn
Copy link

jphorn commented Jul 6, 2016

Hi,

We want to mimic the behavior as seen in Settings > Photos and Camera > Optimise iPhone Storage / Download and Keep Originals. Depending on the option chosen, the footer text changes with more explanation what which option does.

(sorry, Dutch screenshot)

Does anybody know how we should proceed with this in FXForms?

@chris-martin-tessella
Copy link

chris-martin-tessella commented Aug 15, 2016

Set the string for the footer based on the value of the property - the form should load with the correct text for the selected option but won't yet update when you change the selection. Next, in the FormViewController set a key-value observer on the property so that when the value (selected option) changes the form is 'reloaded' (you can use self.formController.form = self.formController.form; to cause the form to update). Changing the option should now redraw the form with the appropriate footer text displayed.

@stayallive
Copy link

This is almost a great solution except that it looks like the footer is not working correctly, see #455.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants