这里我提供两种解决办法: 1.自定义Class继承UINavigationController,重写pushViewController方法 2.这种也是一张方案,push前设为true,push后设为false。这里比较推荐使用第一种方法。