-
Notifications
You must be signed in to change notification settings - Fork 636
Getting Started
Josh Oldenburg edited this page Jun 25, 2014
·
4 revisions
This guide is a basic introduction to QuickDialog. Please be sure you have installed it first.
Here’s how you can create and display your first dialog from inside another UIViewController:
QRootElement *root = [[QRootElement alloc] init];
root.title = @"Hello World";
root.grouped = YES;
QSection *section = [[QSection alloc] init];
QLabelElement *label = [[QLabelElement alloc] initWithTitle:@"Hello" Value:@"world!"];
[root addSection:section];
[section addElement:label];
UINavigationController *navigation = [QuickDialogController controllerWithNavigationForRoot:root];
[self presentModalViewController:navigation animated:YES];
The code above will create the form below:
Pretty simple, right? This is just the very beginning of what QuickDialog can do. You can clone this repository, open the project, and run the demo to view some more advanced examples. (Note that the demo app is based on an older version of iOS, but should be fixed relatively soon.)
In the sidebar on the right you can find links to other articles about the various things you can do with QuickDialog. Especially look at the elements, custom dialog controllers, and JSON form building.