2
如何爲TextField設置動畫而不禁用它?在動畫背景顏色的同時選擇UITextField
UIView.animate(withDuration: 1.0, delay: 0.0, options: [.repeat, .autoreverse, .curveEaseInOut], animations: {
(self.phoneCell.subviews[1].subviews[1] as! UITextField).layer.backgroundColor = UIColor.black.withAlphaComponent(0.2).cgColor
}, completion: nil)