TYCyclePagerView
TYCyclePagerView copied to clipboard
a simple and usefull cycle pager view ,and auto scroll banner view(轮播图) ,include pageControl for iOS,support Objective-C and swift
在Swift中使用TYCyclePagerView,如果使用SnapKit库布局PageControl,会导致界面错乱,不调用layoutForPagerView方法,且视图查看会有多个Cell,具体代码如下: let cycleView = TYCyclePagerView() cycleView.dataSource = self cycleView.isInfiniteLoop = true cycleView.autoScrollInterval = 3 cycleView.register(YoungHomePageCycleCell.self, forCellWithReuseIdentifier: "YoungHomePageCycleCell") view.addSubview(cycleView) cycleView.snp.makeConstraints { (make) in make.left.right.equalToSuperview() make.top.equalTo(view.safeAreaLayoutGuide) make.height.equalTo(cycleView.snp.width).multipliedBy(0.38) } let pageControl = TYPageControl()...
在collectionView中添加这个控件的时候回出现 代理错乱的情况 希望作者及时发现调整
这里是全部代码 // HomeViewCtrl.swift // VKIntlProperty // // Created by fox on 2021/2/3. // Copyright © 2019 com.vk.TestP. All rights reserved. // import UIKit class VKHomeViewCtrl: VKBaseViewCtrl { var collectionView:UICollectionView! var...
xcode11 cocopods:1.8.4 CDN: trunk Repo update failed - 6 error(s): CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/8/8/0/TYCyclePagerView/1.0.0/TYCyclePagerView.podspec.json, error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for...
希望支持垂直滚动方向
希望支持纵向
非常好的轮播 ,别的轮播都是设计好了几个样式,供选择,局限性大。而你的是把cell 交给了程序员自己去设计,可扩展性很强。需求需要,希望支持纵向。
希望支持纵向滚动
解决办法 将tycyclepageview 中的 setcontentoffset:offset animation :animation 改成 [UIView animateWithDuration:0.2 animations:^{ _collectionView.contentOffset = CGPointMake(offset, _collectionView.contentOffset.y); }];