         bt4.fillColor = UIColor(rgb: (167,99,154))
         bt4.color = UIColor(rgb: (170,170,170))
         bt4.image = .star
-        bt4.addTarget(self, action: #selector(action), for: .touchUpInside)
+        bt4.addTarget(self, action: #selector(action(_:)), for: .valueChanged)
         view.addSubview(bt4)
         allButtons.append(bt4)
         

        }
    }
    
    @objc private func action() {
        print("点击")
    }
    
    override func didReceiveMemoryWarning() {

        bt1.isSelected = true
        bt1.fillColor = UIColor(rgb: (153,152,38))
        bt1.color = UIColor(rgb: (170,170,170))
        bt1.addTarget(self, action: #selector(action(_:)), for: .valueChanged)
        view.addSubview(bt1)
        allButtons.append(bt1)
        
