uiwebview - Load a PDF from internet in xcode -
i have view controller has uiwebview object within it.
i load , display pdf internet within uiwebview.
i have code working display pdf loaded resource bundle, lost on having pdf loaded internet.
thinking simple changing fileurlwithpath point location on internet... although form displays, not show contents. assuming have wrong url in string???
does have code snippet load , display pdf internet within uiwebview willing share???
thanks
tony
here how implemented it....
visitnoteviewcontroller *controller = [[visitnoteviewcontroller alloc] initwithnibname:@"visitnoteview" bundle:nil]; nsarray *documentpath = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes); controller.pdfurl = [nsurl urlwithstring:@"http://deimos3.apple.com/webobjects/core.woa/feedenclosure/utah.edu.1668842900.01668842919.1681195338/enclosure.pdf"];
[self presentmodalviewcontroller:controller animated:yes]; [controller release];
got working.
Comments
Post a Comment