Create UIActivityIndicator in iPhone Objective C
To create a UIActivityIndicator that displays a loading indicator in iPhone,
UIActivityIndicatorView *viewIndicator = [[UIActivityIndicatorView alloc] initWithFrame:indicatorFrame];
[viewIndicator startAnimating];
[viewIndicator setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleGray];
[self.view addSubview:viewIndicator];
UIActivityIndicatorView *viewIndicator = [[UIActivityIndicatorView alloc] initWithFrame:indicatorFrame];
[viewIndicator startAnimating];
[viewIndicator setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleGray];
[self.view addSubview:viewIndicator];
Comments
Post a Comment