到目前为止,我尝试过:
@IBOutlet weak var requestDateButtonBottomConstraint: NSLayoutConstraint!
requestDateButtonBottomConstraint.constant = sender.selected ? 0 : 260
我也尝试过框架方法:
var cellFrame = self.frame
cellFrame.size.height = sender.selected ? 44 : 260
self.frame = cellFrame
没有人在工作...