Post not yet marked as solved
Post marked as unsolved with 0 replies, 207 views
I have done some testing to try to resolve the following issue:Device : Ipad Pro 10.5 (IOS 11.2.5 and 11.2.6) physical device only. Works fine on the Ipad Pro 10.5 simulator, IPhone simulators and Iphone physical devices. Issue : UIBarButtonItem tintColor is not modifyable when the UIBarButton is image (PNG) from the Assets.xcassets.Can someone confirm this please?See the following simple code :-----------------------------------------------------import UIKitclass ViewController: UIViewController { @IBOutlet weak var onOffButton: UIBarButtonItem! override func viewDidLoad() { super.viewDidLoad() } @IBAction func buttonPush(_ sender: Any) { onOffButton.tintColor = UIColor.orange print("Color: \(String(describing: onOffButton.tintColor))") } @IBAction func OnOffBarButton(_ sender: UIBarButtonItem) { onOffButton.tintColor = UIColor.yellow print("Color: \(String(describing: onOffButton.tintColor))") }}----------------------------------------------------