Steven 6 kuukautta sitten
vanhempi
commit
308d57342f

+ 11 - 0
KulexiuForTeacher/KulexiuForTeacher/Common/LoadingManager/KSCustomLoadingView.m

@@ -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.