Use UIBarButtonItem icon in UIButton

New iOS 13 support SF Symbols now UIImage(systemName: “trash”) for swift 4.2 (call it on main thread) extension UIBarButtonItem.SystemItem { func image() -> UIImage? { let tempItem = UIBarButtonItem(barButtonSystemItem: self, target: nil, action: nil) // add to toolbar and render it let bar = UIToolbar() bar.setItems([tempItem], animated: false) bar.snapshotView(afterScreenUpdates: true) // got image from real … Read more

“Plain Style unsupported in a Navigation Item” warning with my customized Bar Button Item

I was able to remove these errors by manually editing the storyboard files and find the offending style=”plain” entry on Bar Button items in the <navigationItem> element. Changed from: <barButtonItem key=”rightBarButtonItem” style=”plain” id=”juB-DL-F9i”> To: <barButtonItem key=”rightBarButtonItem” id=”juB-DL-F9i”> This cleared the warnings… right or wrong. This may be a stupendous hack and the larger concern is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)