I programmatically create an ActivityIndicatorView with
UIActivityIndicatorView* cactivity = [[[UIActivityIndicatorView alloc]
initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite] retain];
Then when I want to stopAnimating and release in the next
- (void)connectionDidFinishLoading, im using an undeclared identifier? But i thought i retained it and had to release it myself.
First off there is no need to retain the
UIActivityIndicatorViewafter youallocinitit, it already has an retain count of 1.Just declare an
UIActivityIndicatorViewin the .h file, so you can then reference it as a Instance variable. (thnx Rob).