block about basic

1.转载 

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{ 

// Show the HUD in the main tread
dispatch_async(dispatch_get_main_queue(), ^{ 
// No need to hod onto (retain)
MBProgressHUD *mbp = [MBProgressHUD showHUDAddedTo:self animated:YES];
mbp.labelText = @"   解压中,请等待...   ";
});
//解压代码 
dispatch_async(dispatch_get_main_queue(), ^{
[MBProgressHUD hideHUDForView:self animated:YES];
});
});
posted @ 2011-07-14 08:49  HA-LOU  阅读(196)  评论(0编辑  收藏  举报