uiwebview

Force correct CSS3 transform percentage interpretation on Android

╄→尐↘猪︶ㄣ 提交于 2019-12-09 14:02:30
问题 tl;dr ? Get the mechanism demonstrated in the link below to behave with GPU acceleration on Android Chrome & default browser. UPDATE 2 (2014-01-13 13:25:30Z): According to bref.it's comment below, the reported behaviour is fixed as of Android 4.4 KitKat — but the fix I described below now breaks it! Sod's law. UPDATE 1 (2012-11-01 17:54:09Z): The buggy behaviour is inferrable from the transformation matrix as reported by the computed style of the transformed element, which returns a pixel

UIWebView scrolls jerkily

荒凉一梦 提交于 2019-12-09 13:54:47
问题 I need to use a website with quite a bit of content in my App via UIWebView . When I scroll the page in Mobile Safari everything scrolls smoothly. Even if I scroll fast - the grey squared background appears but is rendered properly after a few moments (less then 0.5 seconds). The same page in UIWebView scrolls jerkily if scrolled fast and doesn't show the grey squared background. I guess Mobile Safari shows the grey squared background first and renders after that while UIWebview stops the

Location Service in UIWebView on iOS8 beta 5 not working

房东的猫 提交于 2019-12-09 13:48:11
问题 Yesterday we tried the developer previews iOS 8 beta 5 with Xcode 6 Beta 5 for our App. We use location services in the webview components of our hybrid app. I recognized that geolocating via UIWebView ist not working anymore. I verified this behavior with an example from scratch loading example for geolocation from the w3schools.com into a UIWebView. With iOS 7, (Base SDK 7.1, built with XCode 5), the notification for acceptance of the location service is prompted an after that, the app

iOS 4.3 UIWebView -webkit-user-select:none; Problem

爱⌒轻易说出口 提交于 2019-12-09 13:13:16
问题 I've been developing an iPad application that uses UIWebView to display some text and image data which is working great. However, I'm trying to stop the user selection that occurs when the user hold the screen for a couple of seconds. The usual methods seem to work fine on everything other than iOS 4.3. I've tried a couple of different things such as: body, html { -webkit-user-select:none; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-touch-callout:none; } * { -webkit-user-select:none;

Trying to load Facebook-Comments plugin in a UIWebView

爷,独闯天下 提交于 2019-12-09 12:01:29
问题 I'm trying to view a facebook-comments plugin in a UIWebView on an iPhone application. I began with Facebook's iOS tutorial, where I implemented Single Sign-On. The app delegate takes care of Facebook's Single Sign-on, then redirects me to my single view controller, which displays a title bar and a UIWebView. I load the webview with a local file called "comments.html" which has been added and copied to my bundle/project directory. NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle]

Send NSArray to javascript

六月ゝ 毕业季﹏ 提交于 2019-12-09 11:10:24
问题 In my app I need to send an array from Objective C to javascript. I read on the web that I can use this instruction: stringByEvaluatingJavaScriptFromString , also i made so: Objective C snippet NSMutableArray *names = [[NSMutableArray alloc]init]; NSMutableArray *srcs = [[NSMutableArray alloc]init]; for (int i = 0; i < [site count]; i++) { NSDictionary *dictData = [site objectAtIndex:i]; [names addObject:[dictData objectForKey:@"name"]]; [srcs addObject:[dictData objectForKey:@"src"]]; } //

clearing a webviews cache for local files

这一生的挚爱 提交于 2019-12-09 10:08:32
问题 I've found some similar posts, but they don't seem to have any effect with what I'm doing. I've got a UIWebView that I'm using to display local content in my bundle. Specifically I'm displaying a docx file. The user should rarely ever look at this document, and my app is tight on memory, so what I want to do is prevent the UIWebView from caching the document. Another viable option is to clear the cache when the user leaves the view. I'm totally ok with having to load it from scratch every

iOS 7 UIWebView doesn't load webpage

一个人想着一个人 提交于 2019-12-09 09:50:06
问题 My app uses UIWebview, and it works well in iOS 5 and iOS 6. However, it doesn't load the webpage in iOS 7 when I build in Xcode 5 and run the same code. - (void)webViewDidFinishLoad:(UIWebView *)webView {} - (void)webViewDidStartLoad:(UIWebView *)webView {} - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {} All delegate function is not called. But I do set delegate in xib file and code self.theWebView.delegate = self; I didn't find any information via google. Thank

page based load epub when changing font

耗尽温柔 提交于 2019-12-09 06:24:39
问题 I am doing ebook reader app like as iBooks. I have succesfully read a .epub file. But my problem is:- I have to add Font size increase and decrease and font changing functionality. I have to adjust pages When i increase and decrease font size . How can I split HTML string in pages ? . You can see in both images . After changing font size the html string gets separated and the formatting is getting collapsed. Thanks in advance 回答1: Well, this is really a hard question... I have an idea for a

iphone UIWebView store the current scroll position?

不羁岁月 提交于 2019-12-09 06:22:42
问题 i want to store the current scroll position of a webView and when i launch the application again . i want to restore that scroll position again .. How to do that ??? 回答1: UIWebView is not a subclass of UIScrollView so you can't do it the "normal" way. Looks like this javascript solution will do what you need: http://shortdivision.wordpress.com/2008/10/14/going-back-to-the-last-place-you-were-in-a-uiwebview/ 回答2: Since iOS5 UIWebView has scrollView property. You can use variable of type