答案 0 :(得分:1)
试试这个:
myLabel.font = UIFont.boldSystemFont(ofSize: CGFloat(35))
// set font size which you want instead of 35
myLabel.transform = myLabel.transform.scaledBy(x: 0.35, y: 0.35)
UIView.animate(withDuration: 1.0, animations: {() -> Void in
self.myLabel.transform = self.myLabel.transform.scaledBy(x: 5, y: 5)
UIView.animate(withDuration: 1.0, animations: {() -> Void in
self.myLabel.transform = self.myLabel.transform.scaledBy(x: 0.35, y: 0.35)
})
})