Questions tagged [shouldstartload]

10 questions
5
votes
3 answers

Xcode, Swift; Detect hyperlink click in UIWebView

I made an iOS app with Xcode and Swift. I want to open specific hyperlinks in Safari browser, there others in the WebView itself. To reach this, I'll have to check when an hyperlinks gets clicked. This is the code I have so far: // // …
user7128548
3
votes
1 answer

UIWebView goBack to particular page

I'm facing a problem with UIWebView's goBack function. My requirement is when the user presses a button (called "Back Button"), I have to redirect the user to the particular page in certain conditions. Think of it as a "cart system": When the user…
Faust V
  • 667
  • 1
  • 9
  • 19
3
votes
0 answers

UIWebView and basic authentication in MonoTouch

In a MonoTouch project I have a UIWebView loading a Basic authentication protected url. I managed to authenticate against the first request to the url by manually adding the basic auth header: UIWebView webView = new UIWebView(View.Frame); ...…
2
votes
1 answer

Which UIWebView has the load request?

So my class has two different UIWebView objects (one is a menu the other is for content). Let's call them UIWebView "A" and UIWebView "B" In my shouldStartLoadWithRequest how do i determine which UIWebView a link was called from? Was it "A" or…
Jim True
  • 1,085
  • 12
  • 13
2
votes
1 answer

Modify Request of webView shouldStartLoadWithRequest:

Currently I am developing an hybrid app which uses webView shouldStartLoadWithRequest: to provide a token for the login. My function works fine for every normal request I make (a click e.g.) - (BOOL)webView:(UIWebView*)webView…
user3567992
  • 592
  • 5
  • 15
1
vote
0 answers

UIWebView goBack method acts differently on different devices

First Device: 8gb 2nd gen Version: 3.1.3 (7E18) Model: MB528LL Second Device: 32gb 3rd gen Version: 3.1.3 (7E18) Model: MC008LL When I call goBack on the 8gb device, shouldStartLoadWithRequest:navigationType: is called When I call goBack on the…
maxpower
  • 1,203
  • 11
  • 20
1
vote
1 answer

iPhone ShouldStartLoad fires once per click?

In my UIWebView when an anchor is clicked I catch it in ShouldStartLoad and always return false to cancel it. (I treat the clicks as command to do things) Strangely the ShouldStartLoad only fires once if the same anchor is clicked more than once in…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
0
votes
2 answers

Prevent user from leaving website in Swift

I want to create a WebView in an iPad-App, that displays a website. I want to prevent the user to click on links that link to other websites (e.g. Facebook, Twitter, ...) but he should be allowed to move around on the current website freely. How can…
0
votes
2 answers

UITabBarViewController doesn't rotate - iOS

I have a UITabBarViewController that contains 5 tabs and a login view which is not part of my tab bar, in my settings I have set that I support all device orientations. but when I run my app, only my login view is the only which rotates. I have…
user2037296
  • 409
  • 1
  • 5
  • 13
0
votes
1 answer

Why is shouldStartLoadWithRequest only being invoked the first time through?

I'm trying to display a list of web pages the user can switch between in my app. I've done this successfully with documents. however, I don't want the user to be able to navigate from these pages. I found out how to do this by looking it up. The…