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, 12:43 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 14
rofl is on a distinguished road
Default Resizing UIWebView

Ok, so I'm making a web browser. It's fairly simple, and solely for learning purposes (I don't intend to sell it; it's so I can learn about the sdk). I know it couldn't even compete with Safari... Anyway..

So I have a title bar, and a button at the bottom, like this:

Code:
______________

    Title Bar
______________


     WebView

______________

      Button
And when I click the button, the title bar is hidden. If it's clicked again, the title bar's hidden property is changed back to false. I want to grow WebView to fill the whitespace as well as the current area (making a bigger view) when the title bar is hidden, but to shrink it back when the title bar is shown again.

How could I go about doing this? For the record, I have a conditional on the button that allows me to change the property according to what it already is, so I just need to know how to resize the UIWebView.

Thanks!
rofl is offline   Reply With Quote
Old 07-09-2010, 12:47 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 30
Reena Mehta is on a distinguished road
Default

Quote:
Originally Posted by rofl View Post
Ok, so I'm making a web browser. It's fairly simple, and solely for learning purposes (I don't intend to sell it; it's so I can learn about the sdk). I know it couldn't even compete with Safari... Anyway..

So I have a title bar, and a button at the bottom, like this:

Code:
______________

    Title Bar
______________


     WebView

______________

      Button
And when I click the button, the title bar is hidden. If it's clicked again, the title bar's hidden property is changed back to false. I want to grow WebView to fill the whitespace as well as the current area (making a bigger view) when the title bar is hidden, but to shrink it back when the title bar is shown again.

How could I go about doing this? For the record, I have a conditional on the button that allows me to change the property according to what it already is, so I just need to know how to resize the UIWebView.

Thanks!
Hi,

You need to design it in UiView and when you click on button then show - hide the titleview and change the frame of webview accordingly
Reena Mehta is offline   Reply With Quote
Old 07-09-2010, 12:57 AM   #3 (permalink)
you are what you hide.
 
Join Date: Apr 2010
Location: India
Posts: 49
iRanjan is on a distinguished road
Default

Have u written anything? any piece of code?

Regards


Quote:
Originally Posted by Reena Mehta View Post
Hi,

You need to design it in UiView and when you click on button then show - hide the titleview and change the frame of webview accordingly
iRanjan is offline   Reply With Quote
Reply

Bookmarks

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: 341
11 members and 330 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