Nav Link On

iPhone Dev Forums > General Development > OpenGL ES Development > getting problem with UIActivityIndicatorView( spinner) plz help me

Reply

 

LinkBack Thread Tools Display Modes
Old 02-09-2010, 05:57 AM   #1 (permalink)
Junior Member
Default Avatar
 
Join Date: Feb 2010
Posts: 2
Default getting problem with UIActivityIndicatorView( spinner) plz help me

Hi frends,

I am getting problem with UIActivityIndicatorView( spinner).

actually my requirement is when ever i click the button the spinner has to appear on the screen,

here i am using "syn request", it takes few seconds time. that's why i am using spinner there.

but here the spinner is appearing after the response. [it means after few seconds the spinner is appearing]

can any one help me plz ....

for your reference i added my code snippet.


myViewController.h
--------------------------
@interface myViewController : UIViewController {

IBOutlet UIActivityIndicatorView *spinner;

}

@property(nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner;

myViewController.m

@synthesize spinner;

@implementation myViewController

- (IBAction)buttonClickedid)sender
{
[spinner startAnimating];

- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
NSError *error;
NSURLResponse *response = nil;
NSData *urlData=[NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];

- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
- - - - - - - - -

[spinner startAnimating];

}
Edit/Delete Message
chakri123 is offline   Reply With Quote
Old 02-10-2010, 10:24 AM   #2 (permalink)
Senior Member
 
hello24's Avatar
 
Join Date: Jan 2010
Location: London, UK
Posts: 126
Send a message via Skype™ to hello24
Default

Make sure you've check the option to hide when stop.
hello24 is offline   Reply With Quote
Reply

iPhone Dev Forums > General Development > OpenGL ES Development


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC1