|
@@ -76,6 +76,17 @@
|
|
|
self.text.text = displayText;
|
|
|
}
|
|
|
|
|
|
+- (void)setShowCancelButton:(BOOL)showCancelButton {
|
|
|
+ _showCancelButton = showCancelButton;
|
|
|
+ if (showCancelButton) {
|
|
|
+ self.cancelButton.hidden = NO;
|
|
|
+ self.cancelButton.userInteractionEnabled = YES;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ self.cancelButton.hidden = YES;
|
|
|
+ self.cancelButton.userInteractionEnabled = NO;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
/*
|
|
|
// Only override drawRect: if you perform custom drawing.
|