I am scratching my head as to what is happening here.....The print plugin is not working... I am trying to add a printer plugin to an application..after mapping up my xml and loading html file, I do not see an error in Xcode. However, as I run the application it crashes and the log states :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSURL initFileURLWithPath:]: nil string parameter'
I am worried as I am unable to overcome it since the last 24 hours...Any help will be great..or if someone can let me know of how to exactly get a printer plugin working in my app will be good....The code I am using is
// Set the base URL to be the www directory.
NSString* wwwFilePath = [[NSBundle mainBundle] pathForResource:@"www" ofType:nil];
NSURL* baseURL = [NSURL fileURLWithPath:wwwFilePath];