Displaying the pdf file in any one of the pdf app downloaded in my ipad

Is there any way to redirect directly to an IOS apps to display my pdf file by any one of the PDF editor app downloaded into my IOS App?

please give me any suggestions.

Thanks in advance.


check this

 NSString *stringURL = @"ibooks://";
 NSURL *url = [NSURL URLWithString:stringURL];
 [[UIApplication sharedApplication] openURL:url];`  

You can get help from this link.

Modified code for opening a pdf file

#import "ViewController.h"
@interface ViewController ()<UIDocumentInteractionControllerDelegate>
@property (strong, nonatomic) UIDocumentInteractionController *controller;

@implementation ViewController
- (IBAction)openDocument:(id)sender {

NSURL *URL = [[NSBundle mainBundle] URLForResource:@"typo_tips" withExtension:@"pdf"];
self.controller = [UIDocumentInteractionController interactionControllerWithURL:URL];
self.controller.delegate = self;
self.controller.UTI = @"com.adobe.pdf";

[self.controller presentOpenInMenuFromRect:self.view.bounds inView:self.view animated:YES];

Need Your Help

Google App Engine Create New Google Account

java google-app-engine single-sign-on

I am working on a requirement in which I have to create new registration module for creating a new account on google. I plan to used google app engine with Java environment.

Add a TextView inside a Custom View that herited View

android view textview custom-view drawtext

I would like to know if it is possible to add a textview programmatically in a custom view that herites from View. In this customView, I draw some shapes with a canvas and I need to put some text t...