YPTabBarController icon indicating copy to clipboard operation
YPTabBarController copied to clipboard

ios11.03版本下didSelectViewController方法不会实现

Open luodeCoding opened this issue 6 years ago • 1 comments

由于产品有个奇葩的需求,点击tabbarItem,跳转其他页面,于是我就在这个方法里面去判断index做跳转,但是如果手机版是iOS11.03,就不能实现

luodeCoding avatar May 25 '18 07:05 luodeCoding

我记得有这个代理方法:

  • (BOOL)yp_tabBar:(YPTabBar *)tabBar shouldSelectItemAtIndex:(NSUInteger)index; 你在这个代理方法里,根据index,判断到你跳转的那个item,进行跳转,同时返回NO就行了

yuping1989 avatar May 25 '18 08:05 yuping1989