-
Notifications
You must be signed in to change notification settings - Fork 125
Description
Try the following...
[MMProgressHUD setPresentationStyle:MMProgressHUDPresentationStyleNone];
[MMProgressHUD showWithTitle:@"Step 1" status:@""];
[MMProgressHUD dismiss];
[MMProgressHUD showWithTitle:@"Step 2" status:@""];
[MMProgressHUD dismiss];
The 2nd time show try to show the HUD, you'll get...
2013-09-30 15:03:01.880 selfpay-ios[11297:a0b] MMProgressHUD [line 104]: Beginning MMProgressHUD show...
2013-09-30 15:04:06.515 selfpay-ios[11297:a0b] *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'A view can only be associated with at most one view controller at a time! View <MMProgressHUD: 0xcb4dd70; frame = (0 0; 320 480); autoresize = W+H; gestureRecognizers = <NSArray: 0xcb59470>; layer = <CALayer: 0xcb4dec0>> is associated with <MMProgressHUDViewController: 0xda2fca0>. Clear this association before associating this view with <MMProgressHUDViewController: 0xda30f80>.'
*** First throw call stack:
(
0 CoreFoundation 0x0321c5e4 exceptionPreprocess + 180
1 libobjc.A.dylib 0x02f9f8b6 objc_exception_throw + 44
2 CoreFoundation 0x0321c3bb +[NSException raise:format:] + 139
3 UIKit 0x01ccb809 -[UIView(Internal) _setViewDelegate:] + 242
4 UIKit 0x01d7d55c +[UIViewController setViewController:forView:] + 40
5 UIKit 0x01d77fb1 -[UIViewController setView:] + 511
6 selfpay-ios 0x00118bee -[MMProgressHUDViewController setView:] + 126
7 selfpay-ios 0x00113637 -[MMProgressHUD _buildHUDWindow] + 263
8 selfpay-ios 0x001139e1 -[MMProgressHUD _buildHUD] + 113
9 selfpay-ios 0x00114d62 -[MMProgressHUD show] + 594
10 selfpay-ios 0x00111ae2 -[MMProgressHUD showWithTitle:status:confirmationMessage:cancelBlock:progressStyle:] + 1026
11 selfpay-ios 0x00111649 -[MMProgressHUD showWithTitle:status:confirmationMessage:cancelBlock:images:] + 617
12 selfpay-ios 0x00110429 +[MMProgressHUD(Class) showWithTitle:status:confirmationMessage:cancelBlock:images:] + 809
13 selfpay-ios 0x0010fcf6 +[MMProgressHUD(Class) showWithTitle:status:cancelBlock:images:] + 246
14 selfpay-ios 0x0010f6cd +[MMProgressHUD(Class) showWithTitle:status:] + 157
15 selfpay-ios 0x00056746 -[DRAAppDelegate applicationDidBecomeActive:] + 182
16 UIKit 0x01c5db04 -[UIApplication _stopDeactivatingForReason:] + 329
17 UIKit 0x01c631e2 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 1378
18 UIKit 0x01c7742c -[UIApplication handleEvent:withNewEvent:] + 3447
19 UIKit 0x01c77999 -[UIApplication sendEvent:] + 85
20 UIKit 0x01c64c35 _UIApplicationHandleEvent + 736
21 GraphicsServices 0x0470d2eb _PurpleEventCallback + 776
22 GraphicsServices 0x0470cdf6 PurpleEventCallback + 46
23 CoreFoundation 0x03197dd5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53
24 CoreFoundation 0x03197b0b __CFRunLoopDoSource1 + 523
25 CoreFoundation 0x031c27ec __CFRunLoopRun + 2156
26 CoreFoundation 0x031c1b33 CFRunLoopRunSpecific + 467
27 CoreFoundation 0x031c194b CFRunLoopRunInMode + 123
28 UIKit 0x01c626ed -[UIApplication _run] + 840
29 UIKit 0x01c6494b UIApplicationMain + 1225
30 selfpay-ios 0x0002010d main + 141
31 libdyld.dylib 0x0378b725 start + 0