uiwebview

WkWebView does not allow PUT method in iOS devices using ionic3

人走茶凉 提交于 2019-12-13 00:45:35
问题 Earlier I was using UIWebViewEngine in my ionic 3 projects but this was resulting in slow scrolling of list in iOS devices. After going through http://jayantpaliwal.com/2017/07/tips-for-ionic-app-to-perform-better-in-ios/ I changed UIWebViewEngine to WkWebViewEngine, my scrolling issue got fixed, but now a new issue has raised. When performing a PUT request from an iOS device my server is giving "Method PUT is not allowed by access-control-allow-methods" but this is working fine in android

How can i detect Phone number and Hyperlink from Pdf file?

岁酱吖の 提交于 2019-12-13 00:22:11
问题 I am displaying my pdf file in UIWebView now i want to detect links and Phone number which is available in my pdf and by pressing link it should open in browser and touching on number it should be called on that particular number so please anybody have idea about it.Give me some suggestion on it.I have written this code for achieving this task but it do not work: webView=[[UIWebView alloc] initWithFrame:CGRectMake(0, 20, 764, 1004)]; webView.scalesPageToFit = YES; [self.view addSubview

retain variable value between function calls javascript [closed]

风格不统一 提交于 2019-12-13 00:07:12
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I have some variables and i want to retain their values between function calls, Can anyone please share how to do this in javascript. I have tried using

Display Local HTML file from documents directory in a UIWebView on iPhone

别来无恙 提交于 2019-12-12 22:11:18
问题 How can I display a HTML file from the Documents directory in my app? Below is the code that I'm using and nothing is showing up in my UIWebView NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *filePath = [NSString stringWithFormat:@"%@/%@", documentsDirectory, @"Notes.html"]; NSURL *url = [NSURL URLWithString:filePath]; NSURLRequest *request = [NSURLRequest requestWithURL:url];

UIWebView not loading mobile version of site with loadRequest

谁说我不能喝 提交于 2019-12-12 21:14:10
问题 I'm trying to use a UIWebView to embed a mobile version of a site in my app. However, when I do the following: NSURL *url = [NSURL URLWithString:webLink]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; [self.webView loadRequest:request]; the full version of the site is loaded. Then when I click any of the links in this page, it will process the mobile version of the site (as I would like it to from the very beginning). I've tried messing around with the user-agent,

Refresh UIwebview without any shaking?

£可爱£侵袭症+ 提交于 2019-12-12 19:10:52
问题 Currently iam refreshing webview using the following code [webview reload]; but in this case when i open that viewcontroller i can see a sudden movement(shake or jump) of UIWebview in viewcontroller .Is there any way to to this refresh in background i mean without any change in webview movement? 回答1: You van do the same refresh functionality as a background thread,So it will work. 来源: https://stackoverflow.com/questions/16881453/refresh-uiwebview-without-any-shaking

UIWebView cache in iOS

大城市里の小女人 提交于 2019-12-12 18:44:17
问题 I'm hosting UIWebView in my app. it looks like UIWebView caches images and data itself. I want to clear its cache on app startup. Cleaning up Safari's cache doesn't help. the only way I found to flush UIWebView 's cache is to power off my iPhone and turn it again. Closing the app doesn't help either. Apple documentation says nothing about it...or I'm missing something. Just in case, app is created with monotouch. 回答1: If you want to obliterate all cached responses, something like this looks

How to click a Button in Javascript with Swift

余生长醉 提交于 2019-12-12 18:42:13
问题 Hey I'm trying to figure out how to click this simple little button but I'm failing. This is the correct code implementation but wrong path in javascript. I need to click on the a< Or if I can just call the function connected to the button I've also tried to click on the td< but nothings happens because the button is actually the a< Code: // no errors print but nothing happens self.webView.evaluateJavaScript("document.getElementById('participant-page-results-more').click();"){ (value, error)

Get touchesBegan on a subview (UIWebView)

蓝咒 提交于 2019-12-12 16:14:36
问题 I've an UIWebView which is added as a subview in a UIview and I would like to detect when this UIWebView is touched but touchesBegan just don't work. Any idea ? 回答1: Subclass UIWebView in your code and then implement touchesBegan in your class. Add the subclassed webview as a subview of your UIView. Call super in the subclassed UIWebView - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [super touchesBegan: touches withEvent: event]; } 回答2: Subclassing and waiting for

phoneGap - iOS - images OK with wifi, but not loaded using 3G (work fine using safari)

╄→尐↘猪︶ㄣ 提交于 2019-12-12 14:59:23
问题 I'm encountering a strange behavior - the (remotely hosted) images of my app are not showing up only in this situation: loaded using 3G on an iPhone using phonegap The images load okay when: I launch the app. with wifi (even from an hotspot) I launch the website version of the app (with mobile safari) I use an android + 3G I've done several searches on Google but found nothing about that case. (The images are remotely hosted on a public IP, accessible using 3G, the android version of my app