我在我的应用程序中使用 QuickDialog 向用户显示搜索对话框。问题:我必须在 Controller 中设置一些默认值,这意味着切换 QBooleanElement 或 - 在这种特殊情况下 - 选择 QSelectItemElement。
有什么方法可以做到吗?
此外:QuickDialog 有文档吗?我找不到任何:(
提前致谢, 基督徒
最佳答案
简单地将 QBooleanElement 设置为 YES/NO 值
QBooleanElement *qboolean = [[QBooleanElement alloc] initWithTitle:@"title" BoolValue:YES];
qboolean.key = @"booleanElementKey";
[firstSection addElement:qboolean];
如果最近你需要在不与用户交互的情况下设置值,你可以这样做:
QBooleanElement* thisElement = (QBooleanElement*)[self.root elementWithKey:@"booleanElementKey"];
thisElement.boolValue = NO;
...
[self.quickDialogTableView reloadData];
关于ios - QuickDialog - 如何选择 QSelectItemElement=,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10395835/