Title: Download Data Asynchronous ios
Tags: ios;objective-c;asynchronous
Question: I am getting user informations from Facebook which are picture and username.Than i show to user  this informations. But the problem is; picture is coming late.So i used SVProgressHUD like Loading... I want to dismiss my SVProgressHUD after download my picture and show the user.Do i need to use Asynchronous or something like that?
Here is my code part;
- (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view.
RoundedImageView *profileImageView = [[RoundedImageView alloc] initWithFrame:CGRectMake(27, 80, 70, 70)];
_userNameLabel.hidden = YES;
profileImageView.hidden = YES;
[SVProgressHUD showWithStatus:@"Loading..."];
//[NSTimer scheduledTimerWithTimeInterval:2.0f target:self selector:@selector(LoadingDismiss) userInfo:nil repeats:NO];
[[FBRequest requestForMe] startWithCompletionHandler:^(FBRequestConnection *connection, NSDictionary<FBGraphUser&gt; *FBuser, NSError *error) {
if (error) {
// Handle error
else {
NSString *username = [FBuser name];
NSLog(@"username = %@",username);
NSString *userBirtday = [FBuser birthday];
NSLog(@"birthday = %@",userBirtday);
NSString *email = [FBuser objectForKey:@"email"];
NSLog(@"email = %@",email);
NSString *userID = [FBuser objectForKey:@"id"];
NSLog(@"userID = %@",userID);
//==========================================================================ResimAlma
NSString *userImageURL = [NSString stringWithFormat:@"https://graph.facebook.com/%@/picture?type=normal", userID];
NSURL * imageURL = [NSURL URLWithString:userImageURL];
NSData * imageData = [NSData dataWithContentsOfURL:imageURL];
UIImage *image = [UIImage imageWithData:imageData];
//Configring the rounded imageview by setting appropriate image and offset.
profileImageView.imageOffset = 2.5;
profileImageView.image = image;
profileImageView.backgroundImage = [UIImage imageNamed:@"dp_holder_large.png"];
[self.view addSubview:profileImageView];
if (image == nil) {
profileImageView.imageOffset = 2.5;
profileImageView.image = [UIImage imageNamed:@"noImage.png"];
profileImageView.backgroundImage = [UIImage imageNamed:@"dp_holder_large.png"];
}else{
profileImageView.imageOffset = 2.5;
profileImageView.image = image;
profileImageView.backgroundImage = [UIImage imageNamed:@"dp_holder_large.png"];
}
_userNameLabel.text = username;
_userNameLabel.hidden = NO;
profileImageView.hidden = NO;
[SVProgressHUD dismiss];
Thank you for your interest and help. :)

Here is the accepted answer: Put [SVProgressHUD dismiss] in the end of your completion block. With your current code, the progress indicator will dismiss immediately after you make a request to Facebook (since that call is non-blocking).
Comment for this answer: How couldn't i think that... Thank you very much for your answer. it worked
Comment for this answer: Yes, i will,but i have to wait 6 mins :)
Comment for this answer: Glad it helped! Please accept the answer if it solved the problem :)

Here is another answer: [SVProgressHUD dismiss];
inside your completion block

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:12/17/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<ios><objective-c><asynchronous>', 'Title': 'Download Data Asynchronous ios', 'ViewCount': 134, 'id': 20646387, 'user_AboutMe': '', 'user_AccountId': 1655490.0, 'user_DisplayName': "Le'Kirdok", 'user_Reputation': 1864.0, 'user_Views': 129.0, 'user_id': 1525166.0}}