初始化: LKQScrollPageView *scrollPageview=[[LKQScrollPageView alloc]initWithFrame:CGRectMake(0, 70, CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame)-73) controllers:@[VC1,VC2,VC3,VC4] names:@[@"one",@"two",@"three",@"four"]]; [self.view addSubview:scrollPageview];