0

I am using QuickDialogue for my form building. After following all instruction of http://escoz.com/open-source/quickdialog I am getting an error in my viewcontroller that QRootElement object is undeclared one. I tried declaring it in .h file however it still shows the same.

What is the correct way to use the form builder?

 - (void)viewDidLoad
 {
     [super viewDidLoad];
     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]; 
 }
4

1 回答 1

0

您拥有的代码大部分都很好(除了您从 viewdidload 内部呈现模态视图控制器这一事实,这确实不是它的正确位置)。

您的问题似乎与在您的项目中安装 QD 有关。确保遵循安装中的所有步骤,特别是构建设置选项卡部分。

于 2013-01-21T13:25:41.350 回答