Additional Function: Close AlertView when touched outside the bounds.
I wanted to use a function to close the alertview whenever I touch outside the view so that I wouldn't need to have a button. This is just an additional function that I thought might be useful.
Changes
Old codes are not changed, only a few lines are added.
Behavior of CustomIOSAlertview on init is the same.
Use [customAlertView setCloseOnTouchUpOutside:YES]; to set this functionality.
Additional Function: Close AlertView when touched outside the bounds.
I wanted to use a function to close the alertview whenever I touch outside the view so that I wouldn't need to have a button. This is just an additional function that I thought might be useful.
Changes
[customAlertView setCloseOnTouchUpOutside:YES];
to set this functionality.