我需要改變文字的大小。我該怎麼做?這是我的代碼:如何更改按鈕的文字大小?
let playAgain: UIButton = UIButton(frame: CGRectMake(140, 400, 100, 50))
playAgain.setTitle("Play Again", forState: UIControlState.Normal)
playAgain.addTarget(self, action: "buttonAction:", forControlEvents: UIControlEvents.TouchUpInside)
playAgain.tag = 1
self.view!.addSubview(playAgain)
有一個UIButton是SpriteKit不會影響你如何更改字體。在單一視圖應用程序中也是如此。 – penatheboss