UIWebView in iphone4.0 - iphone

I use UIWebView in iphone4.0 show a html page,but can show one page and cannot scroll. after rotate iphone It can show all page and scroll normally ,this problem is not exist in 3.1

I find this is a html page peoblem,and I modify the html,it's good !I think iphone4.0 UIWebView core is updated!

Related

Webpage does not have the correct size in my UIWebView

When i load a specific URL in Safari, the page is shown correctly...means small and the whole page fits the screen, so that i dont have to scroll horizontal.
When i load the same URL in my UIWebView, the Webpage appears very large. So if it appears on a desktop PC. How can i solve this problem? Why des it appear so large and in Safari on iPhone all is ok?
I use this line of code to load the page
[self.newsWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:#"<URL GOES HERE>"]]];
Thanks,
Chris
You need to set the scaleToFit property of the UIWebView to YES. You can do that in code or use the interface builder (there's a scaleToFit tick box for the WebView).

How to show pages index in side when showing the pdf in uiwebview

In the above image, we can see the navigationbar and pages index(side) which can viewed when the user tapped the screen once and will be removed from superview, on another tap.
I added the navigationbar using tap gesture recogniser, but to show the pages index I didn't know what to do and even how to search in google?
Any help will be appreciated.
Since you have added the uiwebviewtag to your question, I guess you are using a uiwebview to read the pdf.
In this case, there is no way to add a sidebar with the page index.
The only way do it is to develop your own viewer using Quartz, or to use an existing library.

Display a specific Layout in UIWebView

is there any way to display a specific layout of a website in UIWebView? for example in www.google.com. can we display only Google image in UIWebView rather than showing all content of the page like search bar , search button.. etc..
No It is not possible. When you call www.google.com on UIWebView you are displaying web page in your app. And you don't have any control on the content.

UIWebView: several pages with horizontal scrolling

I am having a difficult time finding any information on this and I think it's because I am looking at this all wrong.
I am trying to create a UIWebView that has several webviews within it. The way I picture this is a UIPageController with dynamic pages being loaded or a scroll view that has dynamic UIWebViews in it so that the user can guesture left or right for "next page" and "back" operations with a nice scroll like animation to the next webview page. The problem is I can't seem to find any information on how to set this up properly and in xCode 4.2. The other part of the problem is that the number of pages is never known to the app but I can find out if there is a "next page" (currently by using javascript in the UIWebView and passing the new url to [webView loadRequest:]). Can someone point me it the right direction?

Ways of showing a webpage in iPhone?

I have a UIwebview which loads up a page ,first the links in the page were opening up on the same page, that made it look ugly, then I found a function which made the link open up in the phone's safari browser.That was nice but actually I want to show the links in a pop up view which can simply be closed. I have seen the google map popping up and showing the map. I want to do the same same thing with the links on the page they should open up as pop up and should not open up in safari and neither in the same UIWebview.
What could be the possible way to implement this.
Another inspiration is phonegap's ChildBrowser which opens the link as a popup.
I want to implement the same in native.
Any help and suggestions will be appreciated.
You have to use UIWebview to show the web content for the link. just resize it by using frame property as per your requirement because it's inherited by UIView.