open in WebView instead of deep link on iOS -


my iphone app has webview may show url registered 1 of installed applications (e.g. yelp). want page open in app. actually, don't care if further links switch app, first view should remain within our app.

i can find app-specific workarounds, https://stackoverflow.com/questions/29587313 pinterest, looking fo generic solution.

you can use same solution suggested in link posted app-specific workarounds, block links not http or https:

nsurl *url = [request url]; if (![url.scheme isequal:@"http"] && ![url.scheme isequal:@"https"]) {     return no; } 

if there other schemes support, add them statement.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -