I am trying to get my first counter to work, and I cannot get it to appear on the screen.
I tried dragging the UIActivityIndicatorView onto the storyboard onto my screen, but then when I tried to connect it to the header file via the storyboard, it did not seem to respond. (what are the right steps?)
So, I did it manually. I added this line to the .h file:
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *aSpinner;
and then I added these lines to my .m file
UIActivityIndicatorView *aSpinner; //throw up spinner from submit btn we created aSpinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle: UIActivityIndicatorViewStyleWhiteLarge]; [self.view addSubview:aSpinner]; [aSpinner startAnimating];
but when I ran the test, none of them appeared. Any thoughts on what I'm doing wrong here?
source share