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 01-25-2012, 09:38 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 6
Slayter Development is on a distinguished road
Default UIWebView with tabs

I am currently developing a web browser. I would like to implement tabs but am unsure where to start. If someone could point me in the right direction it would be greatly appreciated.

Thanks,
Slayter
Slayter Development is offline   Reply With Quote
Old 01-25-2012, 10:26 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Tabs would be outside the webview, where switching a tab would show a different webview.
baja_yu is offline   Reply With Quote
Old 01-25-2012, 10:31 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 6
Slayter Development is on a distinguished road
Default

Yeah thats what I was thinking, like creating an array of uiwebviews. however im not sure how to incorporate that into the interface.
Slayter Development is offline   Reply With Quote
Old 01-25-2012, 10:47 PM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Well I can't tell you that. It depends on the exact UI design.
baja_yu is offline   Reply With Quote
Old 01-25-2012, 10:56 PM   #5 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 6
Slayter Development is on a distinguished road
Default

well just for a standard browser with a toolbar at the top and bottom with the tabs/webview inbetween
Slayter Development is offline   Reply With Quote
Old 01-25-2012, 11:15 PM   #6 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

So what's the problem then?
baja_yu is offline   Reply With Quote
Old 01-25-2012, 11:17 PM   #7 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 6
Slayter Development is on a distinguished road
Default

well im pretty new to ios development and have no clue how to make a bar for the tabs that would switch between them
Slayter Development is offline   Reply With Quote
Old 01-25-2012, 11:22 PM   #8 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

There's nothing standard that would really work. You'll have to make your own using UIButtons for tabs, but you'll have to think about the scenario when too many tabs are open to fit all the buttons, do you want it to scroll or what. Perhaps you should start with a simpler project.
baja_yu is offline   Reply With Quote
Old 01-25-2012, 11:26 PM   #9 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 6
Slayter Development is on a distinguished road
Default

well hopefully i can find something to teach me about that. This project is a dual view web browser which version 1.0 is currently waiting for review. I put in a feature for recently visited web sites as a compensation for not having tabs. so tabs would be the logical next step. So i guess i need to go learn about creating custom ui elements.
Slayter Development is offline   Reply With Quote
Old 01-25-2012, 11:33 PM   #10 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

What could work is a narrow scrollview that loads UIbuttons (one after the next, based on button width) that can be scrolled around. I think that's the simplest solution. It wont hurt to try. If you want to keep your code clean of experimentation, start a separate project and just make the tab bar in it, as a placeholder have the buttons display an alertview when tapped. When it's done, merge it into your main project and instead of showing an alertview show the corresponding webview for that button.
baja_yu is offline   Reply With Quote
Old 01-25-2012, 11:37 PM   #11 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 6
Slayter Development is on a distinguished road
Default

interesting. i think ill mess around with that. One last thing to bother you with: what would be the syntax for adding a button into the scroll view?
Slayter Development is offline   Reply With Quote
Old 01-26-2012, 04:11 AM   #12 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

addSubview: just like adding any other uiview subclass to any other uiview
baja_yu is offline   Reply With Quote
Reply

Bookmarks

Tags
browser, tabs, uiwebview

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: 392
11 members and 381 guests
Atatator, condor304, FrankWeller, glenn_sayers, iphonedevshani, MAMN84, mraalex, PowerGoofy, QuantumDoja, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,123
Posts: 402,908
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

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