I want to alert after hitting the API, pick up the event, and then move on to the next event, but
delegate:self in the closure does not pick up the event.
I haven't touched Objective-C and I'm a beginner at Swift, so I'm having trouble finding a solution.
Please let me know if you know anything about it.swift
I fixed the details because the compilation didn't go through, but in my environment, the UIAlertView button event was picked up properly.
Environment: iPhone 6 (iOS 8.1.3)
By the way, since UIAlertView is deprecated from iOS 8, it is recommended that you use the UIAlertController instead of iOS8 or higher.
© 2022 OneMinuteCode. All rights reserved.