Discussion Forums  >  Images, Documents, File Locations

Replies: 1    Views: 527

SteveW
Apple Fan
Profile
Posts: 1
Reg: Nov 04, 2010
USA
10
11/04/10 01:48 PM (15 years ago)

Opening links in new Safari window?

I'd like to use Buzztouch to publish content I have available in PDFs (or perhaps MS Word). But the hyperlinks in my PDFs are no longer clickable when I see them in the app. After I install the Buzztouch build on my iphone, nothing happens when I click the links. Is there a change I can make in Xcode to make the link open in a new Safari window? What about HTML or MS Word content? Is it possible, in a Buzztouch app, to make hyperlinks in this type of content open in a new Safari window? With everything I've tried so far, links open in the same app window, and there's no way to back out into the original document. To continue reading, a user would have to restart the app/reopen the document, and find their place again. Thanks for any assistance, Buzztouch looks like a great service.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
11/04/10 10:34 PM (15 years ago)
You'll want to explore this method in the CustomUrlViewController.m file. It's inside the ScreenControllers folder in your Xcode project: -(BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType; This method is trigged each time a link in a document is clicked. Uncomment this line NSLog(@shouldStartLoadWithRequest); to print a message to the console each time a link is clicked. This may help you figure out what happens with each click inside your .PDF, WORD, HTML, etc. To see the console, choose Run > Console from the main menu in Xcode while the simulator is running. It is possible that the links / clicks are not being detected by the iphone? We have not heard of a link that is not clickable before?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.