如何从子视图调用presentModalView?

时间:2011-12-11 16:04:44

标签: iphone ipad

我在ipad应用程序中工作,我有一个viewController A,它有很多子视图viewcontroller b,c,d,e,f ...当我想从一个viewcontroller中选择一个单元格来获得一个prsent模态视图“全屏”它无法正常工作,我该如何解决?

1 个答案:

答案 0 :(得分:0)

因为您已将所有viewcontroller添加为子视图,所以不需要显示它

你试试

[self.view bringsubviewtofront:a.view];

希望得到这个帮助,

修改

  use following local notification  calling methods  to solve your problem,

  //place in class  from which you want to perform action
  [[NSNotificationCenter defaultCenter] addObserver:self 
  selector:@selector(openLarge:)name:@"openLarge" object:nil];


  //place in class where you want to perform action
  [[NSNotificationCenter defaultCenter] postNotificationName:@"openLarge" 
  object:nil userInfo:nameDict];    

问候,