Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-08-2010, 01:03 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 45
ronm3xico is on a distinguished road
Default Safari address bar effect

I am currently designing a web browser that does server side filtering and I am having a slight issue making the appearance of it be as identical to the mobile Safari browser packaged with the OS.

When you start to scroll down on a webpage, the toolbar that contains the address bar goes up with the webpage, as if they were one in the same.
I have tried using a ScrollView and putting the toolbar and UIWebView in there, but then the webview becomes not scrollable.

How can I render this effect, with the UIWebView being scrollable, and making the toolbar in essence disappear?

Thanks a lot,
ronm3xico
ronm3xico is offline   Reply With Quote
Old 07-08-2010, 01:35 PM   #2 (permalink)
Tutorial Author
 
Join Date: Feb 2009
Posts: 223
mr tickle is on a distinguished road
Default

Quote:
Originally Posted by ronm3xico View Post
I am currently designing a web browser that does server side filtering and I am having a slight issue making the appearance of it be as identical to the mobile Safari browser packaged with the OS.

When you start to scroll down on a webpage, the toolbar that contains the address bar goes up with the webpage, as if they were one in the same.
I have tried using a ScrollView and putting the toolbar and UIWebView in there, but then the webview becomes not scrollable.

How can I render this effect, with the UIWebView being scrollable, and making the toolbar in essence disappear?

Thanks a lot,
ronm3xico
isnt the webview a class of scrollview.

you should be able to find the view inside and check its a scrollview, then check its vertical scroll.
mr tickle is offline   Reply With Quote
Old 07-08-2010, 01:42 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 45
ronm3xico is on a distinguished road
Default

Quote:
Originally Posted by mr tickle View Post
isnt the webview a class of scrollview.

you should be able to find the view inside and check its a scrollview, then check its vertical scroll.
The WebView is a scrollview, but what I need to accomplish is somehow integrate the top address bar, into that webview, so that way when I scroll down on a webpage, the bar disappears out of view with it.
To accomplish this, I tried putting both, the toolbar, and the webview into a scrollview, but that did not work out because now the webview was incapable of scrolling.

I need some way of accomplishing that same effect that Safari manages to do, hiding the scrollbar on load and only making it visible once you come back to the top of the page.
ronm3xico is offline   Reply With Quote
Old 07-08-2010, 01:54 PM   #4 (permalink)
Tutorial Author
 
Join Date: Feb 2009
Posts: 223
mr tickle is on a distinguished road
Default

Quote:
Originally Posted by ronm3xico View Post
The WebView is a scrollview, but what I need to accomplish is somehow integrate the top address bar, into that webview, so that way when I scroll down on a webpage, the bar disappears out of view with it.
To accomplish this, I tried putting both, the toolbar, and the webview into a scrollview, but that did not work out because now the webview was incapable of scrolling.

I need some way of accomplishing that same effect that Safari manages to do, hiding the scrollbar on load and only making it visible once you come back to the top of the page.
I mean that the webview actually subclasses a scrollview, you dont need to put the addressbar inside another scrollview along with the webview

you can put a timer for every 1 second that checks if the scrollview inside the webview object has scrolled past a certain point

its something like

Code:
for (id *sub in [yourwebview subviews])
{
NSLog(@"the layer is %@",sub);
}
this should find which one is the scrollview, then you can get its current scroll position, and the addressbar is actually a layer in your main view, where you run the above code.

dont quote me on the code above tho, im typing this on a pc

give it a go
mr tickle is offline   Reply With Quote
Old 10-14-2010, 06:39 PM   #5 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 23
kokonaing is on a distinguished road
Default

I am also looking for a solution for this.
__________________

iObsess, The Ultimate Soccer Line-up App


iObsess Highlights, World Cup 2010 Highlights App
kokonaing is offline   Reply With Quote
Reply

Bookmarks

Tags
browsing, safari, uiscrollview, uiwebview, webpage

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 339
11 members and 328 guests
cgokey, EXOPTENDAELAX, GHuebner, guusleijsten, Mirotion22, ohmniac, PavelSea, Pudding, SLIC, Sloshmonster, Sonuye857
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:27 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0