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];

 

相关文章: