Here i am giving you complete source code of progress bar when any process is going on. In iphone activity indicator control is there to implement process bar when any process is going on.
Here i given two start and stop buttons for Activity indicator.
devangViewController .h
devangViewController .m implementation file
Here i given two start and stop buttons for Activity indicator.
devangViewController .h
#import <UIKit/UIKit.h>
@interface devangViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indicator;
- (IBAction)start:(id)sender;
- (IBAction)stop:(id)sender;
@end
devangViewController .m implementation file
#import "devangViewController.h"
@interface devangViewController ()
@end
@implementation devangViewController
@synthesize indicator;
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)start:(id)sender {
[indicator startAnimating];
}
- (IBAction)stop:(id)sender {
[indicator stopAnimating];
}
@end
I hope you will be clear with this activity control in iphone.
Output:
0 comments:
Post a Comment