uiwebview

PhoneGap iOS prevent overscroll

雨燕双飞 提交于 2019-12-10 21:26:53
问题 PhoneGap version: 2.9 Test device: 3gs with iOS 6.1.3 I'm using the PhoneGap build service provided by Adobe I want to prevent the whole app from overscrolling. I've read the related questions and added the following to my config.xml <preference name="DisallowOverscroll" value="true" /> <preference name="UIWebViewBounce" value="false" /> which has no effect. What am I doing wrong? 回答1: Finally found it: it's webviewbounce not UIWebViewBounce <preference name="webviewbounce" value="false" />

How to allow zooming of UIWebView (tried everything)

∥☆過路亽.° 提交于 2019-12-10 21:21:01
问题 I have tried literally every bit of code I have found to try and make this one page zoom in and out but no matter what, the text still overlaps the screen and the page in the UIWebView will simply not fit to the screen. I've tried instructions here: http://www.iphonedevsdk.com/forum/iphone-sdk-development/9112-uiwebview-zoom-pinch.html I've tried adding: webView.scalesPageToFit = TRUE; I've set it to UserInteractionEnabled . But nothing seems to work at all. Is this to do with the coding of

Loading Indicator on Web View

試著忘記壹切 提交于 2019-12-10 21:14:33
问题 My app shows articles from an RSS feed in a table view then when you select a row, opens a web view controller to show the article. I'm trying to add a loading indicator. If I select a row, the indicator will show briefly and then disappear before the page is fully loaded. Also, if I go back to the table view and select a different row, the loading indicator never shows up. I'm using a custom loading indicator called SVProgressHUD and it works fine elsewhere in the app. I don't think that is

Playing YouTube video in iPhone only app - loss of controls

假装没事ソ 提交于 2019-12-10 20:45:21
问题 The code below is used to put a small WebView on a View so that the user can tap it and the video opens in full screen mode and plays. All that works, but after 4 seconds of play the controls disappear and will not reappear (tapping, rotating...). Once the video finishes, the controls reappear and the 'Done' button becomes available. However once the WebView is disposed of and a new view loaded, that new view is unresponsive for up to 6 minutes. [Preserve (AllMembers=true)] public class

UIWebView not loading JavaScript properly - Embedded Facebook post

蓝咒 提交于 2019-12-10 20:06:40
问题 Facebook has this new feature where they allow users to embed public posts into a web page. I want to try to use this in an iPhone application inside a UIWebView. Escaping the code necessary is very straight forward but even if I escape the code manually, the web view will not load the post properly. The JavaScript doesn't work at all. class WebViewController: UIViewController{ @IBOutlet weak var webView: UIWebView! override func viewDidLoad() { loadFacebookPost() } func loadFacebookPost(){ /

Can't load my web view with an http URL

不想你离开。 提交于 2019-12-10 19:34:19
问题 I have a problem in loading in my web view This is my code: NSString *urlString = @"https://www.google.com.eg"; // NSString *urlString = @"http://fatima.ibtdi.work"; NSURL *url = [NSURL URLWithString:urlString]; NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url]; [_fatimaView loadRequest:urlRequest];} It works on Google but doesn't work on the another link. 回答1: Looks like you need to add some App Transport Security Settings to your Info plist try this Any HTTP loading in a web view

How do I enable the zoom in/out option in a UIWebView?

亡梦爱人 提交于 2019-12-10 19:08:20
问题 How do I enable the zoom in/out option in a UIWebView? 回答1: it's the default feature of UIWebView. Use your fingers 回答2: If you want to do it programmatically this is the only way I could find to accomplish it: (specify your own sizes if you wish, i was attempting to zoom out after typing into a form field) UIScrollView *sv = [[webViewView subviews] objectAtIndex:0]; [sv zoomToRect:CGRectMake(0, 0, sv.contentSize.width, sv.contentSize.height) animated:YES]; 来源: https://stackoverflow.com

UIWebView does not initially load certain URLs

一个人想着一个人 提交于 2019-12-10 18:42:40
问题 Having such a bizarre issue with the UIWebView and I haven't been able to find a solution online. I have an iPad app that has a web view in it. Upon first install and run of the app, I try to load an education website. The web view just hangs and times out. I kill the app, I run it again, and it loads just fine. This one works fine which is also part of the education website. I'm pulling my hair out! Some code: -(void)viewDidAppear:(BOOL)animated { NSURL *websiteUrl = [NSURL URLWithString:@

UIWebView webCore crashes in iOS7.1 (example: www.latimes.com)

耗尽温柔 提交于 2019-12-10 17:46:59
问题 I have being seeing crashes in my iOS app, when opening LA Times (www.latimes.com). The crash happens in WebCore somewhere and I have no clue where. Profiling with both "Zombie" or "leaks" do not return anything for this "EXE_BAD_ADDRESS" error. I also checked with a small, bare UIWebView app and I could reproduce the effects. Right now, I see this happening only with LA times, but I am not sure if there are other sites as well. Can someone check on and guide me in what could be the possible

iOS enabling AirPrint for uiwebview contents

你。 提交于 2019-12-10 17:46:59
问题 I am super new to XCode and App development. I currently am loading up a web based application in uiwebviews on the iPad. When one particular page is loaded, it displays a pdf file. I would like to be able to print this pdf file using AirPrint. I am looking for a simple solution. Currently the app I am working on has 6 files which it uses. -ViewController.m -ViewController.h -MainStoryboard_iPad.storyboard -MainStoryboard_iPhone.storyboard -AppDelegate.h -AppDelegate.m In the MainStoryboard