HBDNavigationBar icon indicating copy to clipboard operation
HBDNavigationBar copied to clipboard

hbd_barImage 设置无效。。。。。

Open IIIOS opened this issue 5 years ago • 2 comments

IIIOS avatar Feb 01 '20 09:02 IIIOS

xcode 11.3.1 swift 项目也碰到同样的问题

KevinXinSuiLu avatar May 25 '20 13:05 KevinXinSuiLu

延迟加载就可以了 DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
//修改导航栏背景图片(使用代码动态生成的纯色图片) let image = self.createImageWithColor(.orange, frame: CGRect(x: 0, y: 0, width: 1, height: 1)) self.navigationController?.navigationBar.setBackgroundImage(image, for: .default) }

KevinXinSuiLu avatar May 26 '20 07:05 KevinXinSuiLu