Browse Source

修改一些报错

100Years 1 month ago
parent
commit
30fcc1657a

+ 1 - 1
TSSmalCoacopods/Classes/BaseClass/TSBaseVC.swift

@@ -167,7 +167,7 @@ open class TSBaseVC: UIViewController {
         pop()
     }
 
-    public func pop() {
+    @objc public func pop() {
         if navigationController == nil {
             dismiss(animated: true, completion: nil)
         } else if navigationController?.presentingViewController != nil, navigationController?.viewControllers.count == 1 {

+ 1 - 1
TSSmalCoacopods/Classes/Config/TSConfig.swift

@@ -61,6 +61,6 @@ open class TSConfig: NSObject {
     
     static let ligntSolidDefaultColor:UIColor = "#FAC0D6".uiColor
     
-    var appid = "6740220736"
+   
 
 }

+ 1 - 1
TSSmalCoacopods/Classes/Ex/UILabel+Ex.swift

@@ -88,7 +88,7 @@ public extension UILabel {
 
 
 
-extension UILabel {
+public extension UILabel {
     var textHeight: CGFloat {
         if let textHeight = text?.height(ofFont: font, maxWidth: width > 0 ? width : .max) {
             return textHeight

+ 1 - 1
TSSmalCoacopods/Classes/Tool/TSToastTool.swift

@@ -62,7 +62,7 @@ open class TSToastTool {
     
 
     /// 显示加载动画
-    public func showLoading(text:String? = nil,containerView:UIView?) {
+    public func showLoading(text:String? = nil,containerView:UIView? = WindowHelper.getCurrentWindow()) {
         kExecuteOnMainThread {
             SVProgressHUD.setDefaultMaskType(.clear)
             SVProgressHUD.setContainerView(containerView)