Display a specific Layout in UIWebView - iphone

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.

Related

Display html page in webview and get interact with that html page

Hi All can some one help me ,I am new to iPhone .
My requirement is I have to display HTML Page in webview .So if i click one button then it should go to another view .So How i can i do it ,
Your button points to a whatever://dosomething URL, and your webview's delegate intercepts this in its webView:shouldStartLoadWithRequest:navigationType: method. Returning NO and doing something based on the URL should allow you to do what you're trying.

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.

webview with multi pages

Is there a sample that demonstrate the webview multi-page access, just like safari multi web page selection?
I try to find some hints but no result
Welcome any comment
You will have to implement that yourself. You do this with a scrollview to pick a webpage, grab a screnshot of the current webpage shown to put into the selection screen.

UIWebView in iphone4.0

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!

UIWebView not showing the wikipedia search bar

I am using UIWebView to provide a simple browser in an app. When I go to Wikipedia the search bar at top of the page (mobile version) is never shown in the UIWebView. Scrolling down and back up does not make it visible.
I tried both cases (YES/NO) for scalesPageToFit but did not do anything.
The problem is that Wikipedia is reading the user agent string and deciding not to show the search bar. (UIWebView's user agent is slightly different than mobile Safari's user agent.) Unfortunately, it looks like you cannot change the user agent string used by UIWebView.