4 ms·
QuickDialog (http://escoz.com/open-source/quickdialog http://escoz.com/open-source/quickdialog). Showing a dialog: NSDictionary *dataDict = @{'title':'exa
by kennywinker 14y ago
QuickDialog (http://escoz.com/open-source/quickdialog http://escoz.com/open-source/quickdialog).
Showing a dialog:
NSDictionary *dataDict = @{'title':'example', 'other':'other text'};
QRootElement *root = [[QRootElement alloc] initWithJSONFile:@"file" andData:dataDict];
QuickDialogController *myDialogController = [QuickDialogController controllerForRoot:root];
[self presentModalViewController:navigation animated:YES];
example json form definition file to match:
{
"grouped": true,
"title": "Example QuickDialog Form",
"controllerName": "QuickDialogController",
"sections": [
{
"elements": [
{
"type": "QEntryElement",
"title": "Title",
"placeholder": "item title",
"bind": "textValue:title" },
{ "type": "QMultilineElement",
"title": "Other info",
"bind": "textValue:other" }
]
}
]
}
data from dataDict is merged into the fields defined in the json definition file, using the bindings specified in the 'bind' property.
It's really awesome, and makes all kinds of dynamic views possible. I was skeptical at first (as I am about most cocoa libraries) but I'm pretty sold on it since I gave it a fair shot.
- 10char 14y agoHa, I actually wrote something really similar (without knowing about QD) for RubyMotion: https://github.com/clayallsopp/formotion https://github.com/clayallsopp/formotion Ruby is better suited to this IMO (no clunky file loading), but I agree they both prove dynamic native views need more exploration
- kennywinker 14y agoThat looks remarkably similar. Were you also influenced by MonoTouch.Dialog, as was QuickDialog's developer?
- 10char 14y agoNope, developed it totally independently according to my needs.