Skip to content

Commit 57d2e48

Browse files
Shivam BhallaShivam Bhalla
authored andcommitted
Add log for alert background tap event
1 parent aef402e commit 57d2e48

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Demo/CFAlertViewControllerDemo/View Controller/HomeTableViewController.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ - (IBAction) showAlertButtonClicked:(id)sender {
107107
preferredStyle:[self getAlertStyle]
108108
headerView:headerView
109109
footerView:footerView
110-
didDismissAlertHandler:nil];
110+
didDismissAlertHandler:^(BOOL isBackgroundTapped) {
111+
NSLog(@"Alert Dismissed");
112+
if (isBackgroundTapped) {
113+
// Handle background tap here
114+
NSLog(@"Alert background tapped");
115+
}
116+
}];
111117

112118
// Add Alert Reference Into Footer View
113119
if (footerView && [footerView isKindOfClass:[TweetToIncreaseLimitView class]]) {

0 commit comments

Comments
 (0)