jdg / MBProgressHUD

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

Using HUD in iphone4 and IOS7 was not work #410

Closed yoriWang closed 6 years ago

yoriWang commented 8 years ago

Hi,I was used the class in my project, but there's a mistake when i was running my iphone4 and the systemVersion is 7.1. @jdg the crash happened here

`dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{

    // Do something useful in the background
    [self doSomeWork];

    // IMPORTANT - Dispatch back to the main thread. Always access UI
    // classes (including MBProgressHUD) on the main thread.
    dispatch_async(dispatch_get_main_queue(), ^{
        [hud hideAnimated:YES];
    });
});`

please give me some suggestions,Thanks.

matej commented 8 years ago

Was this in the demo project? What kind of crash did you get? Please provide additional details.

yoriWang commented 8 years ago

Demo in my repositories,just one project-LoginAndRegist. Please open LoginViewController.m and RegisterViewController.m, there are "#warning ...". Thank you.

matej commented 8 years ago

I don't have an iOS 7.1 device around, so I can't debug this for you. If you can provide the exact crash stack trace / exception message / whatever I might be able to help a bit, but that's just about all I can do.

yoriWang commented 8 years ago

I'm so sorry, I can't get the exception message, when i want the application crash and get some exception message, but exception pause here in this code: dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{ I just get the prompt in here, "Thread 1:EXC_BAD_ACCESS(code=1, address=0x30)". libdyld.dylibstart: 0x3aa9eab4 <+0>: nop
-> 0x3aa9eab6 <+2>: blx 0x3aa9eaf8 ; symbol stub for: vproc_swap_integer 0x3aa9eaba <+6>: trap` this is Thread 1 -> 19 start.

My English is so poor, so I can't provide many descriptions.

matej commented 8 years ago

This doesn't look like a MBProgressHUD related issue.

yoriWang commented 8 years ago

but the MBProgressHUD demo running in the same issue occurred on the iPhone4

发自我的小米手机 在 Matej Bukovinski notifications@github.com,2016年8月17日 21:48写道:

This doesn't look like a MBProgressHUD related issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jdg/MBProgressHUD/issues/410#issuecomment-240416410, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AT7aBBvZYyuMVHFz2jUiX80qz5LhFQE4ks5qgxE5gaJpZM4JiwyO.

matej commented 6 years ago

Version 1.1 drops iOS 7.0 support, so closing this.