通过代理实现

让tableBar遵从代理,让代理的实现方法设置 [self setSelectedIndex:2]; 

setSelectedIndex:2 代表tableBar的item第3个处于选中状态,一般情况下,该默认值为0,即进入tableBarViewController后会默认显示第一个item界面(首页)的原因。

 

注:该问题是在 宁夏生活+ 项目中的8个按钮跳转中遇到的

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2020-07-09
  • 2022-12-23
  • 2022-03-02
  • 2022-02-19
  • 2022-12-23
猜你喜欢
  • 2021-08-18
  • 2021-12-03
  • 2022-12-23
  • 2021-09-19
相关资源
相似解决方案