jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

The First show, It takes 8 seconds! #569

Closed IPOSDai closed 4 years ago

IPOSDai commented 5 years ago

CFAbsoluteTime startTime = CFAbsoluteTimeGetCurrent();

    MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:container animated:YES];
    hud.mode = MBProgressHUDModeCustomView;
    hud.customView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"create_close"]];
    hud.detailsLabel.text = message;
    hud.detailsLabel.font = [UIFont systemFontOfSize:15];

    [hud hideAnimated:YES afterDelay:2.f];

    CFAbsoluteTime endTime = CFAbsoluteTimeGetCurrent();
    NSLog(@"执行时间: %f", endTime - startTime);

and the "Main Thread Checker" on. it is normal when the "Main Thread Checker" off.

Zhanggaoyi92 commented 5 years ago

me too. iOS 12.2 iphone max on-line debugging if only on device without debug, it's OK

run

but [NSThread currentThread] show it's on main thread.

helisHuZ commented 5 years ago

I have also appeared this problem, can I only turn off the "Main Thread Checker"?

ruixingchen commented 5 years ago

meet this problem,too, but strange: on my iPhoneX 12.3.1 it works well on my iPhoneXR 12.2, it just stuck for seconds and reports the Main Thread Checker

ruixingchen commented 5 years ago

@helisHuZ problem fixed after I turned it off

elenx commented 5 years ago

see #552

matej commented 4 years ago

Closing since #552 is resolved.