uiwebview

Need to filter certain UIWebView requests and load them in different UIWebViews.

Some Background I have an iPhone app with three UIWebViews, each used to show a different type of page. (The content is specifically designed for this purpose, they're not real web pages.) There are links associated with each specific web view. For example, a link tapped in WV1 might need to load in WV2 because it's a WV2-style link. (T...

UiWebView crashes iPhone

Hey The following view crashes the iPhone If I comment out the using (webView = new UIWebView(webRect)) { } section - it does not. using System; using MonoTouch.UIKit; using MonoTouch.Foundation; using System.Drawing; namespace WmcStarClient { public class EventDetailView : UIViewController { public WmcStarEvent...

Orientation issues with Tab Bar Controller In WebView

Hi I am new to iphone development. In my app, i am using number of viewControllers, web view, Tool bar, Tab Bar and so on. Here, i want to achieve orientation(portrait or landscape or vice versa) corresponding device view in all the web views. I could achieve orientation in all web views except those web views are coming under the tab b...

Call a method by clicking a button in a UIWebView

Hello, I want to generate some HTML content and put this into a UIWebView. The HTML contains some buttons. Is it possible to define actions for these buttons? I want to call a method (e.g. firstButtonPressed) in my objective-c code when someone presses this button in the UIWebView. Thanks you for helping me. ...

NSOperation, Synchronous NSURLConnection, & UIWebView on iPhone

Hello Gentlebeings, I have a weird issue. Here is the setup: I have a NSOperationQueue which I add NSOperation subclass objects to. These do networking using NSURLConnection sendSynchronousRequest method. As I understand it, these are completely asynchronous, since they are NSOperations which each get their own thread. If I launch my ...

What thread are iphone delegate methods run in for webview and core location callbacks?

I have an issue that looks like a race condition with a webview callback and a location manager callback that interact with the same variables and an alert dialog - the dialog is created in the location callback and should be dismissed in the webview callback. I thought that the delegate callbacks for standard objects like the webview a...

Need multiple views to respond to a touch event in an iPhone app

Setup: I have two views that I need to respond to the touch event, and they are layered out on top of one another. View 1 is on top of View 2. View 2 is a UIWebView. View 1 is sublclassed to capture the touch event. My problem is that if I try to call the UIWebView event handlers (touchesBegan: and touchesEnded:) from within the event...

How to make UIwebview Scrollable

How to make UIwebview Scrollable ...

How can I jump to the App Store from a UIWebView link in my iPhone app?

I want to take a user OUT of my app and into the App Store when they click on a link within a UIWebView in my app. But when I click on the link, nothing happens (sim AND device both). How can I jump to the App Store from a UIWebView link in my iPhone app? BY THE WAY: The link in my UIWebView html is as currently follows (minus the self...

UIWebView to Play Local and downloaded Video

I want to play downloaded video using UIWebview. I get webkiterrordomain code=204 error. but if i play video from resources folder it run perfect. //from resources folder run perfect NSString *tempurl = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"video.mp4"]; //from downloaded file NSString *tempurl = dow...

How to enhance the performance of UIWebView?

Hi all~ I made Documents viewer using UIWebView. Load time is short, because file is in the local. But scrolling speed make me so crazy. that scroll performance is very poor !! I made it using so simple code. NSURLRequest* request = [NSURLRequest requestWithURL:fileURL cachePolocy:NSURLRequestReloadIgnoringLocalCacheData timeoutInte...

TTTableView hidden after returning to TTTableViewController

I'm writing an application based off of the Three20 framework, and I seem to be having some trouble... I'm using the TTTableViewController to load data from an endpoint and display a list of the titles, which can be clicked to present a new UIViewController which contains a UIWebView that shows the URL (gotten from the JSON data). Howev...

How to disable UIWebview horizontal scrolling?

I've tried disabling it by inserting: <meta name="viewport" content="width=320" /> into my HTML string, and a dozen variations of the above in the vain hope that I just screwed up the tag syntax... but nothing seems to stop UIWebView from scrolling horizontally. And yet there are apps that manage to do this (like MobileRSS), and presu...

Detect embeded object in webview

Hello I was just wondering if using the private API it is possible to detect embeded videos and also get their src URL? This would be a huge help thank u so much. ...

UIWebview iPhone loading bundle resources

I'm trying to load images from the bundle to a uiwebview. the code i'm currently using is NSString *path = [[NSBundle mainBundle] bundlePath]; NSURL *baseURL = [NSURL fileURLWithPath:path]; [webView loadHTMLString:htmlString baseURL:baseURL]; when i open the view the application closes and opens safari and an error message pops with...

UIScrollView with UIWebViews

There seem to be many questions asked about this subject here on stackoverflow, but none of them touch on the updates made in 3.0. After mucking around for hours on end I finally found out, that nested scroll views (in my case web views inside a scroll view) are fully supported, however the example given at http://developer.apple.com/iph...

How to open any link from a UIWebView to a new UIWebView?

I want to make a simple app, where a UIWebView with custom content will have several links to other pages with similar content as well (and a navigation bar on top, with just a back button). I read the answers to this question, however I'm not sure if I should do that in my application, as the user might be able to go deep enough, and I ...

HTML Links won't open on iPod Touch

I have an UIWebView containing links. These links should open in another view inside my app, except links containing "mailto". To achieve this, I'm using the following code inside the UIWebViews delegate: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navig...

problem with custom NSProtocol and caching on iPhone

My iPhone app embeds a UIWebView which loads html via a custom NSProtocol handler I have registered. My problem is that resources referenced in the returned html, which are also loaded via my custom protocol handler, are cached and never reloaded. In particular, my stylesheet is cached: <link rel="stylesheet" type="text/css" hre...

Strange flickering with UIWebView

I have this strange (short) flickering when pushing a new viewController which contains a UIView > UIWebView. Inside the controller.m, which contains the UIWebView, I have this code setup for the webView: //EXAMPLE 1 NSString *path = [[NSBundle mainBundle] bundlePath]; NSURL *baseURL = [NSURL fileURLWithPath:path]; NSString htmlData...