UITextField not getting keyboard input

后端 未结 4 725
我在风中等你
我在风中等你 2020-12-09 05:51

I\'m having troubles entering text into an UITextField under a SVProgressHUD (Basically an UIView with a full-screen transparent UIWindow and some UIView subviews showing te

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 06:43

    For me this is worked.

    I did changes in my textfield delegate method then it worked.

    if ([textField isEqual:selectBankName])
    {
       return No;
    }
    else if ([textField isEqual:enterAmountTextfield])
    {
        return YES;
    }
    
    return NO;
    }
    
    1. set delegate for textfield
    2. Make sure textfield userInteraction is Enabled.And

    3. Finally Please check your textfield delegate method.

提交回复
热议问题