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 11-17-2009, 11:43 AM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 23
Question Loading views in tabs upon request instead of loading all views when app starts

Hi all,

Question regarding loading views in a Tab bar based app. I have 5 different tabs and when the app launches initially, all the views load up at once, causing the app to be slow when launched until they load, then everythings good, and when you go to each one of these different tabs, the views are already there.

Is there a way that I can have these individual views inside each tab load when the tab has been pressed to be viewed instead of all loading at once when it starts? I've been trying to find a solution to this but I guess maybe I'm not asking the right questions....

Sorry if I explained it kind of weird. As always, help is very much appreciated!
MattTrout is offline   Reply With Quote
Old 11-17-2009, 01:27 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

I don't know definitively, but I don't think so. If you use IB, the view controllers will be created automatically. In code, you have to create the view controllers in order to add them to the tab bar.

What you can do is restructure when your view controllers do things. Move the guts into, for example, viewWillAppear.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
Reply

Bookmarks

Tags
loadingscreen, tab bar application, view controllers, views

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: 264
17 members and 247 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, Speed, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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