So I have a bunch of QEntryElements for various attributes on my model object. Is there a way to update the elements from the model when the model values change?
--
-- QuickDialog site: http://escoz.com/quickdialog github: http://github.com/escoz/quickdialog.
You received this message because you are subscribed to the Google Groups QuickDialog group. To post to this group, send email to quick...@googlegroups.com. To unsubscribe from this group, send email to quickdialog...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/quickdialog?hl=en
---
You received this message because you are subscribed to the Google Groups "QuickDialog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quickdialog...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[[QuickDialogController controllerForRoot:root].quickDialogTableView reloadData]; to force a refresh but that didn't work. Code snipped please...
How do you update an element? I tried element.value = newvalue but it didn't reflect in the ui. I also tried adding[[QuickDialogController controllerForRoot:root].quickDialogTableView reloadData]; to force a refresh but that didn't work. Code snipped please...
--
QEntryElement * myElement; // this is later initialized, displayed, etc...
qdc = [QuickDialogController controllerForRoot:root];
UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:qdc];
[self presentViewController:navigation animated:NO completion:^{ // etc... }];
then elsewhere in the code AFTER the dialog is displayed, I update the value of the element BUT the new value is never displayed.
myElement.value = @"updated value";
[qdc.quickDialogTableView reloadData];
I also tried:
[qdc.quickDialogTableView reloadCellForElements:myElement, nil];
I tried this but it doesn't work. I suppose that it could be because I'm not getting the right controller for the sub menu. How would I get it?
[[QuickDialogController controllerForRoot:root].quickDialogTableView reloadData];
[[QuickDialogController controllerForRoot:subMenuRoot].quickDialogTableView reloadData];