 |
 |
|
 |
06-18-2008, 04:13 PM
|
#1 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: Onomatopoeia, Lugubriousylvania
Posts: 225
|
Nicely centered "Loading" spinner (activity indicator) ?
This is driving me crazy: How do you create a nicely centered "Loading..." activity indicator as shown in the iTunes application when it's first launched?
I'm pretty sure it's a UIActivityIndicatorView with a simple UILabel, but I can't seem to get the spinner to align properly with the text, and get both to align centered in the parent view.
Does anyone have a code snippet that works for this?
|
|
|
06-19-2008, 01:30 PM
|
#2 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: Onomatopoeia, Lugubriousylvania
Posts: 225
|
Re: Nicely centered "Loading" spinner (activity indicator) ?
The trick here was figuring out the actual height of the view in which the activity indicator is embedded, in order to center it properly. This was made problematic by the fact that the view had both a navigation title bar and a tab view bar at the bottom.
I ended up calculating a "content area frame" by subtracting out the height of the nav bar and title bar from the main content view.
|
|
|
08-11-2009, 11:21 AM
|
#3 (permalink)
|
|
Registered Member
Join Date: Aug 2009
Posts: 3
|
Code snippet?
Can you post the snippet please...
|
|
|
08-20-2009, 01:49 PM
|
#4 (permalink)
|
|
Registered Member
Join Date: Jul 2009
Posts: 5
|
Yes, I've been trying to figure out how to get a nicely centered activity indicator with a tab bar controller view setup also. Any code would be helpful, thanks.
|
|
|
09-01-2009, 02:32 PM
|
#5 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 3
|
Hi,
I did a short example how you can create a custom activity indicator and show it on your current view. Maybe the tutorial and code snippets here will help you in any way.
Cheers,
Andreas
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 409 |
| 43 members and 366 guests |
| abcdefz, Alexman, andrei_c, ataranlen, Blitfast, BrianSlick, chrish2os, CunningCat, Dracor, dre, elite, FlukeDude, gandohr, GreenApple, harris, harrytheshark, HemiMG, JasonR, John_C, KarlG, lamy, leeus, Marcel, mesohorny, natekruser, nibby, Noise, Nuncha, Paint.It.Black, quky, Rudy, schoash, shark4ever, simond, Slecorne, StefanL, StevenD, tiderip, TomMuadib, Tonester, tsage2010, warcrow, ZunePod |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,298
Threads: 39,096
Posts: 171,402
Top Poster: smasher (2,575)
|
| Welcome to our newest member, chrish2os |
|