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 03-21-2010, 11:27 AM   #1 (permalink)
iPhone SDK fanatics!
 
Join Date: Aug 2009
Location: Malaysia
Posts: 370
Default ActivityIndicatorView show it from a function

Hi All,

Need help. When a user click on a UIButton (myButton), I link it to my getUpdate event. This linkage is down via IB through the Touch Up Inside.

Things work fine and my event gets call when user tap on the button.

However, I have a question. In my event, I need to show the myActivityIndicatorView when I am update data from a website.

However, the getUpdate function below did not show the myActivityIndicatorView at all. I believe this function is not suppose to work this way but I have no clue how it should (delegate it, etc...)

Can any one help?


My .H file

@interface MyUpdateController : UIViewController {
IBOutlet UIActivityIndicatorView * myActivityIndicatorView;
IBOutlet UIButton *myButton;
}
- (IBAction)getUpdateid)sender;
@end


My .M file

-(IBAction) getUpdateid)sender {

[myActivityIndicatorView startAnimating];

// do all the things I want that takes 30-60 seconds to complete

[myActivityIndicatorView stopAnimating];
return;
}
__________________
KennyChong
iPhone SDK Fanatic!
KennyChong 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: 265
16 members and 249 guests
ADY, Alsahir, Dani77, Desert Diva, Duncan C, F_Bryant, Grinarn, HemiMG, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,761
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

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