I am using the QuickDialog library, which is awesome! I managed so far to place a json file into my project and display it. But know I want to read it from a webservice. But the function takes a string. You can see the function over here.
- (QRootElement *)initWithJSONFile:(NSString *)jsonPath {
self = [self initWithJSONFile:jsonPath andData:nil];
return self;
}
What I do is the following.
[sectionSamples addElement:[[QRootElement alloc] initWithJSONFile:@"loginform"]];
[sectionSamples addElement:[[QRootElement alloc] initWithJSONFile:[NSURL URLWithString:[NSString stringWithFormat:@"%@",@"http://192.168.0.102/testWeb/callback2.json"]]]];
Like you can see my first element just loads a json (loginform) in that is located somewhere in my project. But when I want the second form (callback2.json) to load in. It says dataparameter is nil .
When I browse to the url in my browser it is correctly displaying it.
Can anybody help me?
Kind regards.