I would achieve this when you request something in your application (for example, pressing a button or something else), I would like it to appear in a small rectangle that says βloading ..β, and when the download is complete, it disappears using the "slide effect". I made simple layouts to describe what I am trying to achieve. Do you have any hint on me? Thanks.

NOTE: I do not want the update effect (the download view is displayed without scrolling the screen, it appears, for example, when sending a comment)
UPDATE:
I tried the Cirrostratus code:
- (IBAction)displayLoadingScreen:(id)sender { NSLog(@"pressed"); UIView *loadingView = [[UIView alloc] init]; loadingView.frame = CGRectMake(0,-40,320,40); [loadingView setBackgroundColor:[UIColor blueColor]]; [self.view addSubview:loadingView];
Why does the boot look slide in after the for loop? If you try it, before it prints a for loop and performs two animations. Ideas?
UPDATE 2
- (void)stopLoading { [UIView animateWithDuration:1.0 animations:^{ loadingView.frame = CGRectMake(0,-40,320,40); } completion:^(BOOL finished){ }]; } - (void)startLoading { loadingView.frame = CGRectMake(0,-40,320,40); [loadingView setBackgroundColor:[UIColor blueColor]]; [self.view addSubview:loadingView];
source share