Closed M-I-N closed 5 years ago
When using SDCAlertView in Swift, there is an option to control behaviors. Like:
Swift
let alertController: AlertController = . . . alertController.behaviors = .dismissOnOutsideTap
But as I need to use SDCAlertView in Objective-C how can I use the .dismissOnOutsideTap? I've tried:
Objective-C
.dismissOnOutsideTap
alertController.behaviors = AlertBehaviorsDismissOnOutsideTap;
But it seems that the behaviors property can't be accessed in Objective-C.
behaviors
I think there are compatibility issues when bridging between Swift-Objective-C. How to resolve this?
Sorry, alert behaviors are not available in Objective-C.
When using SDCAlertView in
Swift
, there is an option to control behaviors. Like:But as I need to use SDCAlertView in
Objective-C
how can I use the.dismissOnOutsideTap
? I've tried:But it seems that the
behaviors
property can't be accessed in Objective-C.I think there are compatibility issues when bridging between
Swift
-Objective-C
. How to resolve this?