Post

Replies

Boosts

Views

Activity

Comment on UIAlertController sometimes does not call its UIAlertAction handler
The “response” variable is declared (with __block) at the top of the alert presentation function and is captured by the block that the function passes to dispatch_async(dispatch_get_main_queue(), ...). This async block creates UIAlertAction objects with handler blocks that also capture (and modify) the “response” variable. I’m open to making “response” a file-level static variable, but I don’t understand how the current local declaration would explain the intermittent symptoms I’ve seen.
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’25
Comment on UIAlertController sometimes does not call its UIAlertAction handler
The short answer is no. I’ve tried several times to paste a detailed reply that I composed in a text editor, and I keep getting the error, “Your post couldn’t be saved. Please try again in a few minutes.”
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’25
Comment on UIAlertController sometimes does not call its UIAlertAction handler
Apologies for the duplicate comments. Every time I tried to comment on your reply, the forum web page showed an error message saying that my comment could not be posted, so I kept trying again. Eventually I gave up and posted a reply to my original post instead, at which point several of my attempted comments belatedly appeared.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’25
Comment on UIAlertController sometimes does not call its UIAlertAction handler
(deleted)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’25
Comment on UIAlertController sometimes does not call its UIAlertAction handler
(deleted)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’25
Comment on UIAlertController sometimes does not call its UIAlertAction handler
(deleted)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’25
Comment on UIAlertController sometimes does not call its UIAlertAction handler
The “response” variable is declared (with __block) at the top of the alert presentation function and is captured by the block that the function passes to dispatch_async(dispatch_get_main_queue(), ...). This async block creates UIAlertAction objects with handler blocks that also capture (and modify) the “response” variable. I’m open to making “response” a file-level static variable, but I don’t understand how the current local declaration would explain the intermittent symptoms I’ve seen.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’25