Quickdialog不构建QpickerElement

时间:2013-09-04 12:32:44

标签: iphone ios objective-c json quickdialog

我正在使用QuickDialog框架。这是一个很棒的框架,但我有一个奇怪的问题。  我有JSON我从Webservice回来了。一切正常,只有它不会构建QPickerElements。我在控制台中收到以下警告。

 Couldn't build element for type QPickerElement
但现在奇怪的是。当我将代码粘贴到框架的演示中时。一切都像预期的那样......

这是我在我的应用中加载JSON的方式。

 NSString *jsonSample = data2.form;
 NSLog(@"JSON SAMPLE IS %@",jsonSample);
 id const parsedJson = [NSJSONSerialization JSONObjectWithData:[jsonSample dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingMutableLeaves error:nil];
   QRootElement *root = [[QRootElement alloc] initWithJSON:parsedJson andData:nil];

  TestViewController *quickformController = (TestViewController *) [[TestViewController alloc] initWithRoot:root];
  [quickformController setScriptId:_event.eve_id];
  [self.navigationController pushViewController:quickformController animated:YES];

有人可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

我假设您已将QuickDialog项目嵌入到您的内容中,如同在quickdialog网页中的建议,só,单击quickdialog根项目,然后在目标中单击QuickDialog,在右侧选择“Build Phases”,添加所有.m(或任何你想要的)进入“Compiled Sources”,然后将相同的.h添加到“Copy Headers”