i receiving iwork files(pages,numbers , keynote), .pdf, .txt , rtf files url server. try open url in web view not succeed. uiwebview display nothing when load url.here code
nsurl *url = [nsurl urlwithstring:@"url of i'm reciving server"]; nsurlrequest *request = [nsurlrequest requestwithurl:url]; [self.webview loadrequest:request];
is there other way open following type of files in application? can appreciated.
the uiwebview supposed render websites, not documents (pdf might work).
you should take in apple developer example , other stackoverflow post (this might duplicat):
https://developer.apple.com/library/ios/samplecode/docinteraction/introduction/intro.html document viewer ipad
Comments
Post a Comment