mapanguan

导航

iOS 获取当前对象所在的VC

id next = [self nextResponder] ;
  while (next != nil) {
  next = [next nextResponder];
  if ([next isKindOfClass:[XX_ViewController class]]) {

     //
  return;
  }
  }

  

posted on 2016-09-08 18:01  mapanguan  阅读(269)  评论(0编辑  收藏  举报