This following example is a small snippet of code to create a small loading animation for your IOS apps in Objective C.


UIActivityIndicatorView *loadAnimation = [[UIActivityIndicatorView alloc] 
                                        
initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
    
loadAnimation.center = CGPointMake(160, 220);
    
loadAnimation.hidesWhenStopped = YES;
   
[self.view addSubview:loadAnimation];
   
[loadAnimation startAnimating];