In iOS, the default behavior when I open my webpage is that after login it opens the next page in a new window. But now when I open it in iOS webview, it does not open the next page. I google about it, and the cause seems to be the popup blocker. So, is there any simple way to disable the popup blocker in the iOS webview?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
The webpage might have a redirection that you are not handling properly.
You may first want to use
webView:didFailNavigation:withError:
orwebView:didFailProvisionalNavigation:withError:
to get some reasons or clues. And you can try to debugwebView:decidePolicyForNavigationAction:decisionHandler:
to see whether you are allowing the navigation.If the redirection somehow generates an
about:blank
page in the transition, you could try to useUIWebViewDelegate
'swebView:shouldStartLoadWithRequest:navigationType:
and returns aYES
ifrequest.URL.absoluteString
is indeedabout:blank
, for example:BTW, you also can try to use Safari to debug
webView
s in your simulator. For instance, trydocument.location
in your inspector to see what actually is the URL when the page doesn't open.