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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 03-08-2010, 07:44 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 3
Unhappy Help Adding ScrollView to Tab Bar App

I have a tab bar application, and I need to add a scroll view into one of these tabs. I'm loading each tab individually from a separate nib file, and am not using any navigation/table's etc.

So if someone could explain to me how in the world to combine a scroll view to a tab bar application that would be great. I'm a very novice developer and this is kind of a big deal for me since I don't know what I'm doing.

Sample code would be great if possible.

Thanks very much in advance.
LotsOfQuestions123 is offline   Reply With Quote
Old 03-08-2010, 09:30 PM   #2 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Default

Quote:
Originally Posted by LotsOfQuestions123 View Post
I have a tab bar application, and I need to add a scroll view into one of these tabs. I'm loading each tab individually from a separate nib file, and am not using any navigation/table's etc.

So if someone could explain to me how in the world to combine a scroll view to a tab bar application that would be great. I'm a very novice developer and this is kind of a big deal for me since I don't know what I'm doing.

Sample code would be great if possible.

Thanks very much in advance.
Are you using interface builder to construct your nibs for each tab? If so, there is an element called UIScrollView you can drag and drop onto your view. You'll then need to hook it up in your classes with IBOutlet UIScrollView *myScrollView;
DenVog is offline   Reply With Quote
Old 03-08-2010, 09:36 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 3
Default

Quote:
Originally Posted by DenVog View Post
Are you using interface builder to construct your nibs for each tab? If so, there is an element called UIScrollView you can drag and drop onto your view. You'll then need to hook it up in your classes with IBOutlet UIScrollView *myScrollView;

Yes, I am using interface builder to create each individual view. I've tried creating an outlet and hooking everything up, however every time I run the app it freezes when I click on the tab loading the view.

I think I may start from the beginning, and create a fresh tab bar app, and create each view again. Incase I'm doing this wrong, I am wondering how do I start with a new nib file, but have the nib file connected to the View Controller files? Hope that makes sense haha.


Thanks very much.

Last edited by LotsOfQuestions123; 03-08-2010 at 09:38 PM.
LotsOfQuestions123 is offline   Reply With Quote
Old 03-09-2010, 12:40 AM   #4 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Default

Quote:
Originally Posted by LotsOfQuestions123 View Post
I think I may start from the beginning, and create a fresh tab bar app, and create each view again. Incase I'm doing this wrong, I am wondering how do I start with a new nib file, but have the nib file connected to the View Controller files? Hope that makes sense haha.


Thanks very much.
Go check out chapter 7 of the Beginning iPhone Development book. It will walk you through it, and sample code is online.
DenVog is offline   Reply With Quote
Reply

Bookmarks

Tags
scroll, tab, tab bar application, uiscrollview, view

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: 342
18 members and 324 guests
ADY, Dani77, Duncan C, F_Bryant, Grinarn, HemiMG, Herbie, jansan, linkmx, macquitzon216, mer10, Monstertaco, prchn4christ, Robiwan, sly24, Touchmint, twerner, zulfishah
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,760
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

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