//
// ViewPager.h
// ViewPagerDemo
//
// Created by ianc-ios on 15/11/23.
// Copyright © 2015年 彭雄辉10/9. All rights reserved.
//
#import <UIKit/UIKit.h>
#define UISCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define UISCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define baseTag 1234
@interface ViewPager : UIView
@property(nonatomic,copy)NSArray *VCArray;//ViewController 组成的NSArray
@property(nonatomic,copy)void (^titleActionBlock)(long a);// 选择第几个之后。调用者需要做点什么就用block。a是tag
@property(nonatomic)NSInteger firstSelected;//进来应该显示的页面。(0~x);
@property(nonatomic,strong)UIColor *titleColor;//默认是蓝色
@property(nonatomic,strong)UIColor *titleSelectedColor;//默认白色
-(void)addPageTitle:(NSArray *)titleArray;//添加title.
@end
评论2
最新资源