Comments (5)
Hi @KooYH,
I am not sure if there is a solution. If you can post an example of your code showing the problem you talk about then I would be much more likely to be able to help.
However, I'm not sure this is a problem with WebViewJavascriptBridge. Do you think it is?
from webviewjavascriptbridge.
Sorry, I can't run this as is. Please make it easy for me to help you :) for example, post a tar of a folder and project file which I can open, run, and see exactly what problem you're having. I would love to be of help, but I unfortunately won't take the time to get this code running and then debug it for you.
-- while mobile
On Tue, Apr 23, 2013 at 10:20 PM, KooYH [email protected] wrote:
(void)webViewDidFinishLoad:(UIWebView *)webView {
[alert dismissWithClickedButtonIndex:0 animated:YES];
[activityIndicator stopAnimating];
isAlert = NO;
...
}(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
if (!isAlert) {
alert = [[UIAlertView alloc] initWithTitle:nil
message:@"로딩중"
delegate:nil
cancelButtonTitle:nil
otherButtonTitles:nil, nil];
activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[activityIndicator setCenter:CGPointMake(140 ,70)];[activityIndicator startAnimating]; [alert addSubview:activityIndicator]; [alert show]; isAlert = YES;
}
.....
}(void)webViewDidStartLoad:(UIWebView *)webView {
if (!isAlert) {
alert = [[UIAlertView alloc] initWithTitle:nil
message:nil
delegate:nil
cancelButtonTitle:nil
otherButtonTitles:nil, nil];
activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[activityIndicator setCenter:CGPointMake(140 ,110)];
[alert show];
[activityIndicator addSubview:alert];
[activityIndicator startAnimating];isAlert = YES;
}
if (webView != _webView) { return; }
if (self.webViewDelegate && [self.webViewDelegate respondsToSelector:@selector(webViewDidStartLoad:)]) {
[self.webViewDelegate webViewDidStartLoad:webView];
}
}
The htmlcode
case1case2 main page on my web view. if when click this div, show alertView, and never dismiss alertViewwhen i used webviewDelegate
Reply to this email directly or view it on GitHub:
#38 (comment)
from webviewjavascriptbridge.
i'm really sorry i deleted for my mistake.
i'll send to you a sample app to your e-mail
from webviewjavascriptbridge.
Sounds great! Thanks :)
from webviewjavascriptbridge.
Never heard back about this. Closing.
from webviewjavascriptbridge.
Related Issues (20)
- this project is in maintenance? 项目不在维护了吗? HOT 1
- 提交审核被拒,因为使用了UIWebView,有办法解决吗? HOT 8
- iOS UIWebview replacement to WKWebview HOT 4
- Web view is blank after creating the bridge object HOT 1
- iOS14.6 WebViewJavascriptBridge not work but iOS14.3 works HOT 1
- Hello
- Why don't work in iPad Air (14.1) ? HOT 2
- nice
- iOS 15.4 js 交互不走decidePolicyFor 这个代理方法了 HOT 2
- Mac OSX app Packages printed in version 10.15 and above crashed in system 10.14 and below, so far the problem has not been located HOT 1
- nice
- nice
- 我已经重构了这个库,10分钟就能完成接入,也许可以帮助你. HOT 2
- 按照README 第四步拷贝的js代码可能不起作用 HOT 1
- failed assertion `Draw Errors Validation
- Mambamessage
- Installed with CocoaPods in Xcode 15 beta 6 can not build module 'WebKit' HOT 9
- I think that if you no longer maintain this library, then it is recommended that you make this warehouse archived, rather than leave it to grow grass!
- JSBridge H5调用原生的方法,频繁调用的性能优化
- iOS17.1.1 收不到回调 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webviewjavascriptbridge.