Pergunta

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

Foi útil?

Solução

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];
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top