yuping1989/YPTabBarController

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

Opened this issue · 1 comments

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

我记得有这个代理方法:

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