查找UINavigationController中指定…

来源:互联网 发布:js中获取元素的属性值 编辑:程序博客网 时间:2024/05/17 03:50

查找navigationController推出来的页面中指定的controller

for(UIViewController*curVCin[self.navigationControllerviewControllers])

    {

      if([curVC isKindOfClass:[目标VC class]])

       {

           resultVC =(目标VC *)curVC;

//操作目标VC

          break;

       }

 

    }

0 0
原创粉丝点击