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 07-10-2009, 11:29 AM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Location: Albi, France
Age: 24
Posts: 45
Send a message via MSN to dragon_tenvel
Default How to display an Activity Indicator when a tab is tapped?

Hi everybody!

I have another problem, my tabs take a long time to load so I would like to display an Activity Indicator on the screen as soon as a tab is touched. Problem is, I have no clue of how I'm supposed to do it...

I would very much appreciate some help on that... Thanks in advance
dragon_tenvel is offline   Reply With Quote
Old 07-10-2009, 02:54 PM   #2 (permalink)
http://app-apps.com
 
Join Date: Jun 2009
Location: Los Angeles, CA
Posts: 446
Default

There are several ways to approach this. The quick and dirty way would be throw up an activity sheet with no buttons that says "Loading". You will probably need to refactor your code so that the long processing code comes after the UI has displayed. When the code finishes, remove the loading action sheet.

Another option would be to do the above, but move the long processing code to a separate thread. Once the thread returns remove the "loading" action sheet.

A third option would be to use either of the methods above, but instead of an action sheet, use a view that covers the screen, partially opaque, with "Loading" and the loading indicator icon (available in interface builder).

Quote:
Originally Posted by dragon_tenvel View Post
Hi everybody!

I have another problem, my tabs take a long time to load so I would like to display an Activity Indicator on the screen as soon as a tab is touched. Problem is, I have no clue of how I'm supposed to do it...

I would very much appreciate some help on that... Thanks in advance
__________________
Michael Emmons
Founder, App Apps, LLC
http://app-apps.com



VideoBot | Audiotorium Notes | Thought Bubbles
MichaelE is offline   Reply With Quote
Old 07-13-2009, 05:36 AM   #3 (permalink)
Registered Member
 
Join Date: May 2009
Location: Albi, France
Age: 24
Posts: 45
Send a message via MSN to dragon_tenvel
Default

Thanks for the help, you gave me some good ideas
dragon_tenvel 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: 594
20 members and 574 guests
Andy8888, Arfan, armmzz, bignoggins, BrianSlick, ckgni, devangvyas, Duncan C, Hito_kun, kvu, learningtocode, linkmx, LiquidFire, Monstertaco, oceanlablight, soonw29, sudama, Vineesh
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,775
Threads: 89,203
Posts: 380,591
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Andy8888
Powered by vBadvanced CMPS v3.1.0

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