Keyboard pops up after UIAlertView is dismissed on iOS 8.3 for iPad

前端 未结 7 1395
小鲜肉
小鲜肉 2021-01-31 03:15

With the latest iOS 8.3 release, our app starts to have a weird behavior.

After finishing textfield editing, the user can click the close button which brings up an

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 03:52

    If your deployment target is iOS 8+, try UIAlertController.

    Here's a quick fix for UIAlertView: delay the invocation of showing the alert view when your text field or text view resigns first responder.

    [self performSelector:@selector(showAlertView) withObject:nil afterDelay:0.6];
    

提交回复
热议问题