I have one pdf in my application and I want to open that pdf but not in my applicaton. When ever i'll click or open that pdf it will ask me to open that pdf in another application of pdf viewer availbale on my device i wnt to know that is it possible & if possible how can i do that?

-Thanx in advance

有帮助吗?

解决方案

You need to use only apple PDF viewer afaik. I dont know if I am wrong here. (Please correct me in this case)

To open PDF in iBook app, use this code

NSString *stringURL = @"itms-books:";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
NSString *stringURL = @"itms-bookss:";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top