Where Does A UIAlertView Live While Not Dismissed

前端 未结 3 464
旧时难觅i
旧时难觅i 2020-11-30 07:06

Does anyone know in whose subview an active UIAlertView is located or how to find the thread in which it is running?

3条回答
  •  天涯浪人
    2020-11-30 07:37

    From the problem that you describe with windows and timing, sounds like you should implement alertView:didDismissWithButtonIndex:. You can trigger your followup code from within that method.

    EDIT: if that did not work, I'd try doing a delay to execute the FB stuff after a delay when the window is really guaranteed to be gone.

提交回复
热议问题