int OpenEAGL_UnityCallback(UIWindow** window, int* screenWidth, int* screenHeight,  int* openglesVersion)
{
    
       ...
    [_window makeKeyAndVisible];
    [view release];
   
   IOSRootViewController *    _IOSview=[[IOSRootViewController alloc]init];
    [_window  addSubview:_IOSview.view];

    [_IOSview release];
    
      ...
}

在这个函数添加的view可以在其他视图中查找引用到


    for (UIView *v in [UIApplication sharedApplication].keyWindow.subviews) {
        NSLog([v class]);
    }


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
相关资源
相似解决方案