uiwebview

How to pull out browsing history from uiwebview iphone

独自空忆成欢 提交于 2019-12-11 06:54:05
问题 How can i get the browsing history in UIWebView Iphone. UIWebView recorded browsing history ? if yes, How to pull out back this history shown in table view as Safari . Please advice me. Any suggestion. Thanks 回答1: It's actually much simpler than creating your own stack (which is what I was about to do until I found that it's not necessary). UIWebView has the methods: goBack , goForward , canGoBack and canGoForward . You can do the following. Make the ViewController that contains your

iPhone SDK: UIWebView

﹥>﹥吖頭↗ 提交于 2019-12-11 06:30:46
问题 I'm working on an app that uses a UIWebView to display its help files. The webView lives in it's own view, DocViewController...when its called the - (void)viewDidLoad { method uses [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath: [[NSBundle mainBundle] pathForResource:docPage ofType:@"html"]isDirectory:NO]]]; to load the proper doc page. However, once the first page is loaded, the view becomes static and new pages aren't loaded when the docPage changes and the view is

Whats the proper way to release a UIWebView?

巧了我就是萌 提交于 2019-12-11 06:12:54
问题 I've been looking at many code samples on the internet. If I add an UIWebView from interface builder as an IBOutlet. Is it right that in the dealloc method of the controller, I need to do the following? [webView stopLoading]; webView.delegate = nil; [webView release]; and what about in the viewDidUnload method? 回答1: In the UIViewController class reference, Apple recommends that for iOS 3.0 and above, you release references to objects that cannot be easily recreated. In the same document Apple

SWIFT: Filling HTML input [type=“text”]

折月煮酒 提交于 2019-12-11 06:03:10
问题 How to fill fields on an HTML form that is currently being presented in a web view? The purpose of this application is meant to auto log-in into a website. On basis of different tutorials I mostly copy-pasted a swift code but mine does not work . It would be great to get a hint what the mistake could be or even a complete different approach is very much appreciated. The important parts of the website I want to login is built like this: text-field Username: <input type="text" class="form

Trying to push to detail view with Xcode 4.2 iOS 5 from UIWebView

扶醉桌前 提交于 2019-12-11 06:00:01
问题 I have a ViewController embedded in a NavigationController. The ViewController has a UIWebView that I'm trying to capture links from. I'm able to intercept the links, but when I try to push the link content to a detail page, it seems to be firing a new Controller but it's invisible. If I click a link for a second time (or if I just click a second link) I see a back button pop up, but again the actual content of the new ViewController is not visible. Here is the log output for the first link

Can we display many pdf in a UIWebview?

大城市里の小女人 提交于 2019-12-11 05:42:42
问题 Can we display many pdf/doc in only one webview? For example, I have 3 pdf files to be loaded in single UIWebview: PDF 1 (as the first) PDF 2 (as the second) PDF 3 (as the third) I didn't find any reference for it. 回答1: The UIWebView displays one file. If you need multiple PDF files to be displayed consecutively in a UIWebView, you can: Use Adobe Acrobat to combine them Combine them programmatically by Merging PDF Files in Cocoa 来源: https://stackoverflow.com/questions/13847530/can-we-display

iOS UIWebView Does Not Zoom Enough

江枫思渺然 提交于 2019-12-11 05:38:58
问题 I have UIWebView and have [[self webView] setScalesPageToFit:YES] . Problem When zooming in my webView the zoom isn't as magnified as it is on Safari. Question How can I accomplish the same zoom factor that Safari has? Examples This is what the first sentence at url http://www.apple.com/privacy/ looks like at max zoom: On my webView On Safari 来源: https://stackoverflow.com/questions/37977020/ios-uiwebview-does-not-zoom-enough

Translucent , setStatusBarStyle, UIWebView

送分小仙女□ 提交于 2019-12-11 05:37:10
问题 I'm working on the UIWebView and what I want is for the webView not to over rap the view. so here is the question. I set the UIWebView ,and the status bar is overlaid over the content. How can I handle this? I coded as when I made the UIImage view, but at that time there is the navigation bar, and it worked well. Also I did setFrame:CGRectMake(0, 20).... but also doesn't work. why the [ setFrame]; method doesn't work? Any ideas please. #import "ViewController.h" @interface ViewController ()

html5 form validation not working in iOS UIWebView

笑着哭i 提交于 2019-12-11 05:33:30
问题 i'm loading a page with HTML5 validated elements, and using methods like "required" and max-length, they work on Android WebViews but not in iOS's. Is there a way to support that and other HTML5 functions that I use? or i always have to write my own validation methods? 回答1: Safari does not fully support form validation: http://caniuse.com/#feat=form-validation You can either write your own JavaScript-based validation, or use an existing polyfill. Update: Safari 10.1 includes full interactive

Applying XSLT to an XML coming from a Webservice in iOS

夙愿已清 提交于 2019-12-11 05:14:58
问题 In my iPAD application, I get an XML from a webservice.I use NSURL connection to call the Webservice and get Data from it. I usually parse the XML using NSXMLParser and display the data on a UITableView. But due to a requirement I need to get the XML and apply and XSLT on it and display it on a UIWebView. I know the basics of applying an XSLT to an XML and displaying it. However, how would I do it dynamically in my code? It would be great if someone could help me with this. 回答1: you may use