mgcrea / cordova-messagebox

Cordova ARC plugin for UIAlertView
7 stars 5 forks source link

Prompt does not show textField on iOS7 #5

Open ruzz311 opened 10 years ago

ruzz311 commented 10 years ago

When the prompt is shown, there is no textField available to type in. Additionally when the prompt is dismissed with the 'cancel' or the 'ok' button there is a range exception:

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 1]'
*** First throw call stack:
(
    0   CoreFoundation                      0x002215e4 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x030088b6 objc_exception_throw + 44
    2   CoreFoundation                      0x001c24e6 -[__NSArrayM objectAtIndex:] + 246
    3   MyApplication                       0x000080ac -[MessageBox alertView:clickedButtonAtIndex:] + 140
    4   UIKit                               0x00968ef3 -[UIAlertView(Private) modalItem:tappedButtonAtIndex:] + 67
    5   UIKit                               0x00a36785 -[_UIModalItemsCoordinator _notifyDelegateModalItem:tappedButtonAtIndex:] + 180
    6   UIKit                               0x005922ea -[_UIModalItemAlertContentView tableView:didSelectRowAtIndexPath:] + 1035
    7   UIKit                               0x005697b1 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1513
    8   UIKit                               0x00569924 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 279
    9   UIKit                               0x0056d908 __38-[UITableView touchesEnded:withEvent:]_block_invoke + 43
    10  UIKit                               0x004a4183 ___afterCACommitHandler_block_invoke + 15
    11  UIKit                               0x004a412e _applyBlockToCFArrayCopiedToStack + 403
    12  UIKit                               0x004a3f5a _afterCACommitHandler + 532
    13  CoreFoundation                      0x001e94ce __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
    14  CoreFoundation                      0x001e941f __CFRunLoopDoObservers + 399
    15  CoreFoundation                      0x001c7344 __CFRunLoopRun + 1076
    16  CoreFoundation                      0x001c6ac3 CFRunLoopRunSpecific + 467
    17  CoreFoundation                      0x001c68db CFRunLoopRunInMode + 123
    18  GraphicsServices                    0x0445a9e2 GSEventRunModal + 192
    19  GraphicsServices                    0x0445a809 GSEventRun + 104
    20  UIKit                               0x00487d3b UIApplicationMain + 1225
    21  MyApplication                       0x00002626 main + 134
    22  MyApplication                       0x00002595 start + 53
    23  ???                                 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException