uiwebview

Non-zoomable webview that works at both iPhone and iPhone4 resolutions

I want to have a webview that has a single HTML and a single CSS file, shows graphics at the same size, but native resolution for each. My existing webviews, designed for 320x480 seems to scaled up well (crisp text and border-radius for instance), though images are at half res in the iPhone4 simulator. How do I simulate the native imag...

UIWebView as part of a UITableViewCell: leading to crash because of a thread lock

Hi everybody, I'm trying to add a UIWebView as a subview of a UITableViewCell in order to display some data formatted with MIMEType 'application/xhtml+xml'. Even just initializing the UIWebView as described in the following code leads the application to crash! - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath...

Invoke a method from a different view controller. iPhone SDK

So I have an application with two view controllers one is the main controller that launches when the app launches. This view controller Has two buttons on opens a uiwebview to google.com the other opens that same uiwebview but loads a different page. How can I change the nsurl that is loaded in the other view controller from the origina...

Android: how to add custom soft keyboard when form field is selected in WebView

I am using WebView to present UI. Is there any way that I can trigger custom soft keyboard when input text form field is selected? ...

UIWebView, goBack accessing back-forward list?

Hi, I am just having a quick look at UIWebView and have written a small browser with a back button, a UITextField and a forward button. Here is what happens: I enter "www.google.com" into the textField and it goes to the page. The textField says "www.google.com" I enter "www.apple.com" and it goes to the page. The textField says "www.a...

UIWebView does not show scrolling bars on iphone Simulator

CGRect fullFrame = CGRectMake(10, 150, 300, 200); UIWebView *fullTextView = [[UIWebView alloc] initWithFrame:fullFrame]; fullTextView.userInteractionEnabled = YES; NSString *imagePath = [[MDImageManager sharedImageManager].imagesPath copy]; imagePath = [imagePath stringByReplacingOccurrencesOfString:@"/" withString:@"//"]; imagePath = ...

UIWebView loadHTMLString format

Hi, I'm new to the whole "iPhone Dev" world, and I am creating a simple app which has a feature to see the latest entries from a number of different Wordpress blogs. I am able to grab encoded content ( node) from the RSS feeds and display it easily enough using a UIWebView and the loadHTMLString function. What I cannot figure out how ...

Why would webview's loadHTMLString not hit webViewDidStartLoad callback?

Background: I am developing a news reader type app native for the iPhone which displays many of the news articles as html in UIWebViews. My current goal is to have a css file in my project that can style html that is programmitically meshed up (article + comments, etc). I have done a bunch of little proof of concepts and I know that I ...

iPad UIWebView position a UIPopoverController view at a href link coords

I'm hoping that this question isn't a stupid one but how does one go about positioning a UIPopoverController view over a UIWebView so that the popup view arrow points at the UIWebView link that was clicked to show it? I'm using the delegate method; -(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest ...

using tableview for moving to a particular part of the page in uiwebview

hi, i have a uitableview which will load a uiwebview with a long page (static page inside the app). I want to know whether it is possible to move to the center of the page on clicking the cell in the uitableview. Something very similar to using hyperlinks to point to different location of same HTML page. ...

iphone notification from javascript to objective C

I've designed my main view using HTML, CSS and some images. It looks very nice. I'm using some images that are clickable in HTML code. On click of some image, I want to load some view accordingly. Is it possible? If yes, please suggest me how to do it. If tutorial or some sample code is available please share it. ...

Bubble Chat + Emoticon + UITableViewCell

Hi There, This is a question for iPhone development and I'm hopin someone can point me to the right direction on how i should go about implementing this. I am trying to write a chat application that supports emoticons/smileys. Where the smiley/emoticon images are stored can be figured out later. I think few iphone applications out the...

UIWebView not displaying .rtfd.zip files

I have an app with a UIWebView and a UITableView. The UIWebView displays an .rtfd.zip file with the same name as the selected table row. I use this code: NSString* sourceFilePath = [[NSBundle mainBundle] pathForResource:[self title] ofType:@"rtfd.zip"]; NSURL* url = [NSURL fileURLWithPath:sourceFilePath isDirectory:NO]; NSURLRequest* re...

Problem of UIWebView in cocos2d. The View is appearing in next scene also.

hi, I am using UIWebView to display the scrolling text in a scene in cocos2d. Some times the text is appearing in the next scene also. And it is not disappeared in any next scene. When I restart the game it is again fine. I released it and removed it from superview. But the problem occurs only some times . I could not get where I am wro...

ios4 sdk, uiwebview with custom buttom on it

I'm using iPhone OS 4 and creating an application. I've a webview, over which I'm placing two custom buttons with images (no text). When I'm running the app, I'm not seeing the buttons at all. any suggestions? I've a tab bar view and one of the view has this web view. Edit: You can download the XIB and related files from http://dl.dro...

Load last webpage UIWebView

How can I make a button that will open a UIWebView the the last page that it was on before the user closed it? for instance i have 2 xibs 1) my home screen 2) my webview on my home screen i have 2 buttons 1) opens the webview to google.com 2) the second one opens the webview to the last page that it was on. ...

Problem in creating image of UIWebView

Hi guy, I want to create an UIImage of UIWebView and then I want to draw that image. Here is my code: UIWebView *tempView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 44, 700, 1024)]; [webView loadHTMLString:@"Display This String" baseURL:nil]; UIGraphicsBeginImageContext(tempView.bounds.size); [tempView drawRect:tempView.bounds]...

Alert when leaving/login WebView for my site

I have an app using WebView. when the user clicks the login button from the Webview(loginpage.php).he have to redirected to my application with the login credientials. i have tried this URL but i cant resolve my problem. http://www.iphonedevsdk.com/forum/iphone-sdk-development/41113-alert-when-leaving-webview-appstore.html (BOOL)webVi...

How can I automatically click cancel when an OK-Cancel alert pops up in the UIWebView?

I'm having a problem with my UIWebView for my iPhone App... I am getting an alert thrown up with OK-Cancel button options, and I don't want the user to see this... But the web page automatically pops up an alert. How can I programmatically detect the Alert was thrown up and how do I click the cancel button on the alert? Thanks, Matt ...

iPad (iOS4) - Opening word document using UIWebview

Error I get from console: 2010-07-02 12:08:17.179 myApp[15509:6507] Cannot find data converter callback for uti public.data 2010-07-02 12:08:17.182 myApp[15509:6507] Failed to generate preview iPhone simulator work fine without any problem but iPad doesn't. That's strange. Thanks for helping me. Tung Do ...