You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.4 KiB
74 lines
2.4 KiB
1 year ago
|
//
|
||
|
// MemberManagementViewController.m
|
||
|
// LekangGuard
|
||
|
//
|
||
|
// Created by ecell on 2023/8/29.
|
||
|
//
|
||
|
|
||
|
#import "MemberManagementViewController.h"
|
||
|
#import "MCPageView.h"
|
||
|
#import "MemberListViewController.h"
|
||
|
#import "AttentionMessageViewController.h"
|
||
|
|
||
|
@interface MemberManagementViewController ()<MCPageViewDelegate>
|
||
|
@property (nonatomic , strong) MCPageView * PageView;
|
||
|
@property (nonatomic ,strong) NSMutableArray *controllers;
|
||
|
|
||
|
@end
|
||
|
|
||
|
@implementation MemberManagementViewController
|
||
|
|
||
|
- (void)viewDidLoad {
|
||
|
[super viewDidLoad];
|
||
|
// Do any additional setup after loading the view.
|
||
|
self.zx_navTitle = @"成员管理";
|
||
|
self.view.backgroundColor = KKBackgroundGrey;
|
||
|
|
||
|
NSMutableArray *titles = [NSMutableArray array];
|
||
|
[titles addObject:GJText(@"成员管理")];
|
||
|
[titles addObject:GJText(@"绑定审批/申请")];
|
||
|
|
||
|
self.controllers = [NSMutableArray array];
|
||
|
MemberListViewController *vc = [MemberListViewController new];
|
||
|
AttentionMessageViewController *vc1 = [AttentionMessageViewController new];
|
||
|
[self.controllers addObject:vc];
|
||
|
[self.controllers addObject:vc1];
|
||
|
|
||
|
|
||
|
self.PageView = [[MCPageView alloc]initWithFrame:CGRectMake(0, iPhoneX_NavHeight, SCREEN_WIDTH,SCREEN_HEIGHT-iPhoneX_NavHeight) titles:titles controllers:self.controllers];
|
||
|
self.PageView.delegate = self;
|
||
|
//self.PageView.titleButtonWidth = Adapted(94);
|
||
|
self.PageView.backgroundColor = KKWhiteColorColor;
|
||
|
self.PageView.lineWitdhScale = 0.65;
|
||
|
self.PageView.lineColor = KKMainColor;
|
||
|
self.PageView.selectTitleFont = FontBoldADA_(16);
|
||
|
self.PageView.defaultTitleFont = FontADA_(14);
|
||
|
self.PageView.defaultTitleColor = KKTextBlackColor;
|
||
|
self.PageView.selectTitleColor = KKMainColor;
|
||
|
self.PageView.lastItemBackgroundColor = KKClearColor;
|
||
|
[self.view addSubview:self.PageView];
|
||
|
|
||
|
[self zx_setPopGestureCompatibleScrollViews:@[self.PageView.titleScroll,self.PageView.contentCollection]];
|
||
|
[self.PageView selectIndex:self.selectedIndex];
|
||
|
|
||
|
}
|
||
|
|
||
|
- (void)MCPageView:(MCPageView *)MCPageView didSelectIndex:(NSInteger)Index
|
||
|
{
|
||
|
NSLog(@"%ld",Index);
|
||
|
self.selectedIndex = Index;
|
||
|
}
|
||
|
|
||
|
|
||
|
/*
|
||
|
#pragma mark - Navigation
|
||
|
|
||
|
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
||
|
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
||
|
// Get the new view controller using [segue destinationViewController].
|
||
|
// Pass the selected object to the new view controller.
|
||
|
}
|
||
|
*/
|
||
|
|
||
|
@end
|