iOS常用

ios 基于collectionView轮播图,自动定时器

2021-04-25  本文已影响0人  wuFANL

···
//
// WFSwiperView.m
// WFModStyle1
//
// Created by wufan on 2021/4/23.
//

import "WFSwiperView.h"

import "WFModSafeTimer.h"

import "WFSwiperViewCell.h"

import "WFPageControl.h"

define MaxSection 20

@interface WFSwiperView()<UICollectionViewDelegate,UICollectionViewDataSource,WFModSafeTimerDelegate>
@property (nonatomic, strong ) UICollectionView *swiperView;
@property (nonatomic, strong ) WFPageControl *pageControl;

@property (nonatomic, strong ) WFModSafeTimer *timer;
@property (nonatomic, strong ) NSMutableArray *items;

@end

@implementation WFSwiperView

// [self.pageControl setValue:[UIImage imageNamed:@"select.png"] forKeyPath:@"currentPageImage"];
// [self.pageControl setValue:[UIImage imageNamed:@"common"] forKeyPath:@"pageImage"];

    [self insertSubview:self.pageControl aboveSubview:self.swiperView];
   
}
return self;

}

}

}

}

}

···
具体代码位置:GitHub

上一篇下一篇

猜你喜欢

热点阅读