NSArray *nib = [[NSBundle mainBundle]loadNibNamed:[pages objectAtIndex:0] owner:self options:nil];
//得到第一个UIView
UIView *tmpCustomView = [nib objectAtIndex:0];
//获得屏幕的Frame
//CGRect tmpFrame = [[UIScreen mainScreen] bounds];
[self.view addSubView:tmpCustomView];

 

相关文章:

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