我想在MFMessageComposeViewController
中使用自定義顏色。我認爲它可以使用:Swift MFMessageComposeViewController tint和背景顏色iOS 10
@IBAction func sendMessage(sender: AnyObject) {
let messageVC = MFMessageComposeViewController()
messageVC.body = "Enter a message";
messageVC.recipients = [phoneString]
messageVC.messageComposeDelegate = self;
//color
UINavigationBar.appearance().barTintColor = UIColor(hexString: "fec13e")
UINavigationBar.appearance().tintColor = UIColor.whiteColor()
self.presentViewController(messageVC, animated: false, completion: nil)
}
但它不工作。
嘗試的圖像之前呈現messageVC的FUNC:'messageVC.navigationBar.tintColor = UIColor.whiteColor()'和'messageVC.navigationBar.barTintColor = UIColor.blueColor()' – TonyMkenu
@TonyMkenu我做了您的評論。但它不適合我。 xcode8/swift3 – user2809312
任何解決方案?我也面臨同樣的問題 –