方式一: //@"PageView" 为文件名字 NSArray *objs=[[NSBundle mainBundle] loadNibNamed:@"PageView" owner:nil options:nil];