A key difference for me of QuickDialog is that a single .m file (settingsFormBuilder.m) can carry all of the code for multiple views in the navigation controller under the one root, as such it seems to get linked to one view controller (settingsViewController.m).
My issue is that when i click on a tableviewcell, the underlying view will get pushed and the viewWillAppear in settingsViewController.m will get hit. I wan't to insert an if statement in this viewWillAppear method to see if a particular rootElement is being pushed rather than another.
How can I create an if statement to determine if my 'userAccessRoot' is being loaded in viewWillAppear as opposed to say my 'deviceConfigRoot'?
For example I need something like this, but just can't find a code combination that will do it
- (void)viewWillAppear:(BOOL)animated {
if ([self.root.activeRoot.key isEqualToString:"userAccessRoot"]) {
//Do something
}
else {
}
}
Thanks in advance