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

前端 未结 7 1329
小鲜肉
小鲜肉 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 04:01

    If anyone struggles with this, I hope this will help:

    if (NSClassFromString(@"UIAlertController")) {
        UIAlertController* alert = ...
    }
    else {
        UIAlertView* alert = ...
    }
    

提交回复
热议问题