2

I have a text box that is used to look up from a large list of potential options via a web service and then list them in a table view.

On start/complete I call them

+ (void)showProgressHUDIfNecessary {
    if ([RestKitWebServiceRequest operationCount] == 0) {
        [[UIApplication sharedApplication] beginIgnoringInteractionEvents];
        [SVProgressHUD showWithMaskType:SVProgressHUDMaskTypeGradient];
    }
}

+ (void)dismissProgressHUDIfNecessary {
    if ([RestKitWebServiceRequest operationCount] == 0) {
        [SVProgressHUD dismiss];
        [[UIApplication sharedApplication] endIgnoringInteractionEvents];
    }
}

While the indicator is spinning, touch events are most definitely disabled but when running from iPhone Simulator I can still input into the text box without restriction.

How can I ensure that all user input is disabled, including keyboard input as just described?

tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126
  • SVProgressHUD is itself disable all toches if mask type is set to gradient. If you still face the problem you can disable the user intersection on current key window. – Vijay Masiwal May 10 '15 at 21:59
  • @tacos_tacos_tacos start a bounty, this is a serious issue, or a bug to be filed to Apple... – Juan Boero Apr 05 '16 at 22:51

0 Answers0