In my iPhone application i am trying to load the pdf file on UIWebview.. but some how it's not working. Please suggest.
Code that i used is as follow...
NSString* filePath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"pdf"]; NSData* data = [NSData dataWithContentsOfFile:filePath]; [self.webView loadData:data MIMEType:@"application/pdf" textEncodingName:@"UTF-8" baseURL:nil];
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.