I think this is a quick question and answer - I'm reading a dictionary entry for a detail view which is pushed from a tableview row. but in the detail view, when I'm picking up the data to display (as an HTML page) I'm getting the message: incompatible Objective-C types initializing 'struct NSDictionary *'. expected 'struct NSString *' Could someone help as to what I've done wrong and how it needs correcting. Thanks in advance
The code is here:
- (void)viewDidAppear:(BOOL)animated {
NSLog(@"didappear");
NSString *url = definition; // WARNING MESSAGE IS HERE
//self.glossaryWordDefinition.text = definition;
[glossaryWordDefinition loadRequest:
[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]
pathForResource:url
ofType:@"html"] isDirectory:NO]]];
[super viewDidAppear:animated];
}