uiwebview

Error logging into Instagram in iOS app using UIWebView

試著忘記壹切 提交于 2019-12-18 07:37:34
问题 I'm following Instagram authentication [recommended] steps using UIWebView on an iOS app. After entering credentials, hitting login loads a page with following error. This page could not be loaded. If you have cookies disabled in your browser, or you are browsing in private mode, please try enabling cookies or turning off private mode, and then retrying your action. And, this only happens on first run through the steps of authentication; on the next attempt, everything works smooth as silk. I

WKWebView vs UIWebView

我们两清 提交于 2019-12-18 07:12:05
问题 I've an app/project with deployment target version - iOS 10. I had used UIWebView , which is deprecated now and replaced by WKWebView . So, I want to replace UIWebView with WKWebView in my project also. It force me to either use UIWebView (with iOS 10) or change deployment target to iOS 11. I cannot change deployment target but as a middleware solution, I added code (programatically) support for both. I mean, if user's device OS is iOS 11 (or above) then use WKWebView else use UIWebView (for

UIWebView leak? Can someone confirm?

耗尽温柔 提交于 2019-12-18 07:09:12
问题 I was leak-testing my current project and I'm stumped. I've been browsing like crazy and tried everything except chicken sacrifice. I just created a tiny toy project app from scratch and I can duplicate the leak in there. So either UIWebView has a leak or I'm doing something really silly. Essentially, it boils down to a loadRequest: call to a UIWebView object, given an URLRequest built from an NSURL which references a file URL, for a file in the app bundle, which lives inside a folder that

UIWebView showing blank screen in iOS 8

怎甘沉沦 提交于 2019-12-18 05:53:07
问题 I have an app where I can download a pdf and store it in the iPhone. It worked perfectly in iOS 7 (I am currently running on iOS 8) and while running the app in iOS 8, the webView just stays blank. I have I no idea what's wrong. #import "ISJMMisalViewController.h" #import "SWRevealViewController.h" @implementation ISJMMisalViewController @synthesize activityImageView; - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:YES]; [self.webView addSubview:activityImageView];

How to find UIWebView toolbar (to replace them) on iOS 6?

送分小仙女□ 提交于 2019-12-18 05:27:08
问题 I have tried the following code from another application but it doesn't find anything. Why? How to get access to the UIWebView toolbar? - (UIToolbar *)findVirginWebKeyboardToolbar:(UIView *)parent { if ([parent isKindOfClass:[UIToolbar class]]) { UIToolbar *tb = (UIToolbar *)parent; if ([tb.items count] == 1 && [((UIBarButtonItem *)[tb.items objectAtIndex:0]).customView isKindOfClass:[UISegmentedControl class]]) { return tb; } } for (UIView *view in parent.subviews) { UIToolbar *tb = [self

Youtube - iPhone - displaying UIWebView of video

走远了吗. 提交于 2019-12-18 04:25:14
问题 I have a script in my app that loads a Youtube link in a section of the UIView, the link is provided by my server (mySQL/using php) and from that it is loaded... this script below works fine..... however... Here is what I have right now, I was looking to remove the programmatically part (where it gives the dimensions and possibly replace it with a UIWebView) to it, so I could improvise using IB, this will help when my application launches, a quick animation occurs and then I want this youtube

how to remove html5 local storage of an iOS app using UIWebview

我只是一个虾纸丫 提交于 2019-12-18 04:24:08
问题 I have an app that uses UIWebview which is used to browser different sites/urls. I am in need of an option "clear client data" similar to iOS mobile safari "Remove All website Data" that removes cookies/local storage. I know how to do the cookies but i am unable to figure out how to remove/clear the later (local storage) How to remove HTML5 persistant databases in UIWebView? discussed this but i didn't see how that works for my above case. localStorage.clear() javascript needs to be run in

Keep losing php session cookie in UIWebView

筅森魡賤 提交于 2019-12-18 04:23:38
问题 I'm new to the forum and also quite new to iOS Dev. I'm having trouble with a UIWebView, where I keep losing login permission to a HTML form which sets a phpsession cookie (with expiration set to 8h, which works on desktop). It seems the UIWebView throws the cookie away after about an hour or so, instead of 8h. I've read the NSHTTPCookieStorage should take care automatically for cookies, even after app enters background mode or quits. The NSHTTPCookie looks like this NSHTTPCookie version:0

How to embed local images in UIWebView?

风格不统一 提交于 2019-12-18 04:17:12
问题 Is there an easy way to embed local images in an UIWebView? For example, I would want to embed an logo.png image in the UIWebView, which I've added to the Resources folder in Xcode. Would I simply add an img HTML tag for this? 回答1: yes it's very simple but, for others, remember to put "file://" at the beginning of your path for example: NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"png"]; [myWebView loadHTMLString:[NSString stringWithFormat:@"<html><body><img src=\

How to detect when a UIWebView has completely finished loading?

你离开我真会死。 提交于 2019-12-18 03:55:09
问题 I am trying to build a filter for a UIWebView and I am struggiling to detect when the UIWebView has completely finished loading. I have used the following two methods – webView:shouldStartLoadWithRequest:navigationType: – webViewDidFinishLoad: but the issue is that these will be called multiple times when a page has frames and additional content to load. What I need is to know when the view has completely loaded and there is no more content to fetch. Then when the content has loaded I can