             }
             delay(0.4) { [weak self] in
                 self?.searchBar.setShowsCancelButton(true, animated: true)
+
+                if let strongSelf = self {
+                    strongSelf.searchBar.yep_cancelButton?.addObserver(strongSelf, forKeyPath: "enabled", options: [.New], context: nil)
+                }
             }
         }
     }

            self?.searchBarBottomLineView.alpha = 1
        }, completion: { finished in
        })

        return true
    }

        }
    }

    deinit {
        searchBar.yep_cancelButton?.removeObserver(self, forKeyPath: "enabled")
    }

    override func viewDidLoad() {
        super.viewDidLoad()

