MBProgressHUD

if (HUD) {
        [HUD removeFromSuperview];
    }
    HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
    HUD.mode = MBProgressHUDModeCustomView;
    HUD.customView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"error.png"]];
    HUD.labelText = @"Error";
    HUD.detailsLabelFont=[UIFont fontWithName:@"verdana" size:12.0];
    HUD.detailsLabelText = @"Cannot connect to SignalR, please check the network connection.";
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{

        [HUD removeFromSuperview];
    });

results matching ""

    No results matching ""