uiwebview

loggin into an iOS app using a system with ADFS

别来无恙 提交于 2019-12-04 14:24:51
I am interested in making an app that logs into a system that uses Single Sign on with ADFS and SAML. Now I am happy to read up on it, I just was wondering if there is anything out there that is specific to the iOS platform and how this integrates, maybe even with a demo app. I have found this website: Single Sign-On for Desktop and Mobile Applications using SAML and OAuth I do realise that this is not an "coding problem" question, but I am sure they will come out of this when I start developing:-) I hope some of you are able to provide some helpful information on this:-) Thanks in advance.

IOS 7 Safari like History dragging gesture using uiwebview

こ雲淡風輕ζ 提交于 2019-12-04 14:17:52
问题 If you see in ios 7 safari app have left and right dragging to see history of webpages. It also show content of previous page while dragging . I want similar functionality using UIWebiview. I can get forward and backward page but how that dragging functionality with displaying previous content will be implemented? 回答1: Note: this is iOS 7 only. For iOS 6 you should use the PanGestureRecognizer and detect if it's left or right. Your need two properties: @property (nonatomic, strong)

HTML file input with multi selection in UIWebView not working for videos

為{幸葍}努か 提交于 2019-12-04 14:14:28
I've been having issues with creating an upload form packaged as a native iOS app using UIWebView (Cordova). Problem is that when a video is selected in a element that allows multiple selection. Unlike when only single selection is possible, the selected videos are not "compressed" aka. preprocessed and thus restricted in some way. When trying to read such a video selected from the photo library using FileReader, the onerror function throws a "ProgressEvent" from the "FileReader" with the following "FileError" with code "1" meaning "NOT_FOUND_ERR". However it works fine in a normal iOS Safari

Disable copy and paste in UIWebView

本小妞迷上赌 提交于 2019-12-04 14:00:16
问题 Nearly, I had tried every thing to disable copy/paste in UIWebView but nothing worked with me. I'm loading my UIWebView from a string (array of strings) as follows: [webView loadHTMLString: [NSString stringWithFormat:@"%@<p class=\"paragraph\" style=\"float: right\" >%@</p>",css,[[array objectAtIndex:0] valueForKey:@"content"]] baseURL:nil ]; I had tried this: -(void)webViewDidFinishLoad:(UIWebView *)webView1{ [webView1 stringByEvaluatingJavaScriptFromString:@"document.body.style

how can i set landscape orientation when playing a video from webview

喜夏-厌秋 提交于 2019-12-04 13:55:59
i have a webview with a video link, the app is only portrait orientation but i need to change orientation when the video is in fullscreen and use all screen. Thanks for your help. soulshined Put this in your AppDelegate : - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { id presentedViewController = [window.rootViewController presentedViewController]; NSString *className = presentedViewController ? NSStringFromClass([presentedViewController class]) : nil; if (window && [className isEqualToString:@

iOS: display modal view over the top of a UIWebView

只愿长相守 提交于 2019-12-04 13:45:50
Is it possible to display a modal view over the top of a UIWebView? I have a UIViewController that loads a WebView. I then want to push a Modal View Controller over the top so that a modal view covers up the WebView temporarily... The WebView is working fine; here's how it's loaded in the View Controller: - (void)loadView { // Initialize webview and add as a subview to LandscapeController's view myWebView = [[[UIWebView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]; myWebView.scalesPageToFit = YES; myWebView.autoresizesSubviews = YES; myWebView.autoresizingMask =

Archive/Unarchive UIWebView?

给你一囗甜甜゛ 提交于 2019-12-04 13:44:06
问题 I would like to save the current state of an UIWebView to disk in IPhone SDK. I have a UIWebView that loads a website with lots of javascript. I would like to save the UIWebView state, maintaining the state of the javascript variables, http cookies, etc. at that moment. Then at a later time, I would like to unarchive the UIWebview and display it on the screen with the exact same state as it was when it was archived. Is this possible? 回答1: I tried to do this on a previous project and there's

UIWebView load remote html page with local images and javascript files

大城市里の小女人 提交于 2019-12-04 13:39:42
问题 Im creating application that will display remote page on the UIWebView using local images and javascript/css files for faster loading. I want to avoid using cache because for this to work it must first load all the content. I was searching online for possible solution. Here is what I have: NSURLRequest *urlrequest = [ [NSURLRequest alloc] initWithURL: [NSURL URLWithString:urlString] ]; NSData *returnData = [ NSURLConnection sendSynchronousRequest:urlrequest returningResponse: nil error: nil ]

How to implement touch events in uiwebview?

不羁岁月 提交于 2019-12-04 13:09:55
I have tried various solutions provided on this site and others to implement touch events on uiwebview. But still I am not able to do this. Actually, i have created a article reader application. Here, I have added a uiwebview on the normal uiview. Now, I want to trace some user touch events on that particular webview. When I do this on normal view, it works perfectly. But if I try it on webview. it stops working. The solutions I tried before are implementing touch methods like touchbegan touchended touchmoved touch cancelled 2 implementing uigesturerecognizer 3 implementing window touch events

Displaying an image in UIWebView

六眼飞鱼酱① 提交于 2019-12-04 13:00:47
I'd like to dislay an image in UIWebView using <img src="imageInBundle.png"/> The above image is in my bundle. I load it, along with other HTML in a string, like this: [myWebView loadHTMLString:htmlString baseURL:[NSURL URLWithString: @"http://www.abc.com"]]; However, I just get a blue box with a white question mark. Is there something else I need to do? Try to change the [NSURL URLWithString: @"http://www.abc.com"] to a [NSURL fileURLWithPath:path] where path is something like NSString *path = [[NSBundle mainBundle] bundlePath]; ...depending where the image is placed. Is there a reason you're