wimagguc / ios-custom-alertview

Custom UIAlertView. Continue adding images and UIViews to dialogs in iOS7+
Other
1.66k stars 394 forks source link

show after close #96

Open prcela opened 8 years ago

prcela commented 8 years ago

If showing alert immediately after it is closed, it will not be shown. It is because of closing animation duration that removes views after it has been finished.

timeline: -----------------------------> close() -> show() -> close anim finished and removed it from superview

moonlsd commented 8 years ago

No need to do that. I have changed the method close to include an extra parameter: void (^)(BOOL)completedHandler, so in close() method I have a callback, which I can use to show again.