let titleAttributed = NSAttributedString(string: HLLocalizeHelper.localizedString("TITLE", stringFileName:"Local"), attributes: [NSForegroundColorAttributeName: UIColor.blackColor(), NSFontAttributeName: UIFont(name: HLLocalizeHelper.localizedString("MARKER", stringFileName:"Local"), size: 22)!]) alertController.setValue(titleAttributed, forKey: "attributedTitle") let messageAttributed = NSAttributedString(string: HLLocalizeHelper.localizedString("My_message", stringFileName:"Local"), attributes: [NSForegroundColorAttributeName: UIColor.grayColor(), NSFontAttributeName: UIFont.systemFontOfSize(14)]) alertController.setValue(messageAttributed, forKey: "attributedMessage") alertController.view.subviews.first?.subviews.first?.backgroundColor = UIColor(red: 90.0, green: 70.0, blue: 255.0, alpha: 0.5) alertController.view.subviews.first?.subviews.first?.layer.cornerRadius = 10 alertController.view.tintColor = UIColor.blueColor() alertController.addAction(UIAlertAction(title: HLLocalizeHelper.localizedString("PLAY", stringFileName:"Local"), style: .Default, handler: { (action: UIAlertAction!) in self.view?.presentScene(Start(), transition: SKTransition.flipHorizontalWithDuration(0.3)) self.ScoreWin = 10 self.downMenuButton.removeFromSuperview() }))
( "TITLE", stringFileName: "Local"), attributes: [NSForegroundColorAttributeName: UIColor.blackColor (), NSFontAttributeName: UIFont (name: HLLocalizeHelper.localizedString ( "MARKER", stringFileName: " let titleAttributed = NSAttributedString(string: HLLocalizeHelper.localizedString("TITLE", stringFileName:"Local"), attributes: [NSForegroundColorAttributeName: UIColor.blackColor(), NSFontAttributeName: UIFont(name: HLLocalizeHelper.localizedString("MARKER", stringFileName:"Local"), size: 22)!]) alertController.setValue(titleAttributed, forKey: "attributedTitle") let messageAttributed = NSAttributedString(string: HLLocalizeHelper.localizedString("My_message", stringFileName:"Local"), attributes: [NSForegroundColorAttributeName: UIColor.grayColor(), NSFontAttributeName: UIFont.systemFontOfSize(14)]) alertController.setValue(messageAttributed, forKey: "attributedMessage") alertController.view.subviews.first?.subviews.first?.backgroundColor = UIColor(red: 90.0, green: 70.0, blue: 255.0, alpha: 0.5) alertController.view.subviews.first?.subviews.first?.layer.cornerRadius = 10 alertController.view.tintColor = UIColor.blueColor() alertController.addAction(UIAlertAction(title: HLLocalizeHelper.localizedString("PLAY", stringFileName:"Local"), style: .Default, handler: { (action: UIAlertAction!) in self.view?.presentScene(Start(), transition: SKTransition.flipHorizontalWithDuration(0.3)) self.ScoreWin = 10 self.downMenuButton.removeFromSuperview() }))