实现这个功能只需要一句代码就行了 self.tabBarController.selectedIndex=0; /** 0是第几个tabbar */ 转载于:https://www.cnblogs.com/QJJIOSfront-end/p/5683129.html