Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone ($4.99)

dotnetIQ ($4.99)

Your First iPhone App ($1.99)

iPocket Tools 9 in 1 ($0.99)

Catch-Me (Free)

Alien Strike ($0.99)

Historic Olympic Medal-Table ($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-10-2009, 11:29 AM   #1 (permalink)
New Member
 
Join Date: May 2009
Location: Albi, France
Age: 22
Posts: 44
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)
/.
 
Join Date: Jun 2009
Location: Los Angeles, CA
Posts: 99
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
__________________
Harkonian
harkonian is offline   Reply With Quote
Old 07-13-2009, 05:36 AM   #3 (permalink)
New Member
 
Join Date: May 2009
Location: Albi, France
Age: 22
Posts: 44
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
» Stats
Members: 21,490
Threads: 35,768
Posts: 156,681
Top Poster: smasher (2,448)
Welcome to our newest member, pongteam2
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:02 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0