Adding a small swirl icon on boot

im sure that it is absolutely simple, infact, i am sure that i have already seen the code for this somewhere, I just can’t remember the life of me where.

All I want to do is add a little swirl image at boot time. can anyone point me in the right direction

Thanks Richard

+3
source share
2 answers

You need a UIActivityIndicatorView

UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(135,140,50,50)];
[spinner startAnimating];
[self.view addSubview:spinner];
[spinner release];

You might want to keep a pointer to it, although you can delete it later.

+6
source

You should look for a standard UIActivityIndicatorViewcontrol.

+1
source

Source: https://habr.com/ru/post/1742113/


All Articles