iOS 微信7.0.4版本,setTabBarItem的bug(必现)

发布于 6 年前作者 na119372 次浏览最后编辑 6 年前来自 ask

iOS版本7.0.4版本报错,找不到图片路径,导致setTabBarItem方法报错不能更改tabbar信息,麻烦确认下问题原因,以及如何解决,谢谢!

2 回复
qliu
qliu1 楼6 年前

iconPath: ‘…/images/exhibition_normal.png’,

selectedIconPath: ‘…/images/exhibition_active.png’,

=>

iconPath: ‘/images/exhibition_normal.png’,

selectedIconPath: ‘/images/exhibition_active.png’,

ok,解决。。。。

yong65
yong652 楼4 年前

图片的网络地址和相对位置都不行。换上这个就可以了