I asked a similar question, but the respondents are Android, are there any iOS side?
Do an activity and embed a H5 page in the app.
How do I let the user click the button on the H5 page to jump to another page of the app?
For example, click on the H5 page of the recharge button, jump to the top-up interface (This page is the app's original), click the Snap button immediately, jump to the product page (this page is the app native).
How does the H5 interact with the app side of the data?
How to write in the background?
Is there an example?
Please take the weapon.
Another similar question
Reply content:
I asked a similar question, but the respondents are Android, are there any iOS side?
Do an activity and embed a H5 page in the app.
How do I let the user click the button on the H5 page to jump to another page of the app?
For example, click on the H5 page of the recharge button, jump to the top-up interface (This page is the app's original), click the Snap button immediately, jump to the product page (this page is the app native).
How does the H5 interact with the app side of the data?
How to write in the background?
Is there an example?
Please take the weapon.
Another similar question
Request the HTML5 page in the UIWebView control,
In - (void)webViewDidFinishLoad:(UIWebView *)webView this method calls with the stringByEvaluatingJavaScriptFromString:@"js代码" JS interaction, remove the HTML5 page button corresponding to the URL address, and then create another page to pass the value on the line.
Pseudo code:
另一页面:Page2.h@property (nonatomic,strong)NSString *url;当前页面:UIWebView *view=[UIwebView allco]init];- (void)webViewDidFinishLoad:(UIWebView *)webView{ NSString *str= [view stringByEvaluatingJavaScriptFromString:@"document.getElementById('')"]; //另一个页面 Page2 *p=[Page2 alloc]init]; p.url=str; [self.navigationController pushViewController:p animated:YES];}基本就这么个意思。。
URL schemes in iOS?
IOS please use https://github.com/marcuswest ...
Android please use Https://github.com/lzyzsd/JsB ...