All Projects → runThor → HTSDCycleScrollView

runThor / HTSDCycleScrollView

Licence: other
一款基于SDScrollView的轮播图控件,对源码进行了修改,可切换为滚动时图片带有缩放效果的模式,可改变PageControl小圆点的样式

Programming Languages

objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to HTSDCycleScrollView

the-subway-of-china
中国地铁图
Stars: ✭ 104 (+116.67%)
Mutual labels:  scale, zoom
Transformation Matrix
Javascript isomorphic 2D affine transformations written in ES6 syntax. Manipulate transformation matrices with this totally tested library!
Stars: ✭ 184 (+283.33%)
Mutual labels:  scale, zoom
React Fit To Viewport
Stars: ✭ 92 (+91.67%)
Mutual labels:  scale, zoom
Temps
λ A selfhostable serverless function runtime. Inspired by zeit now.
Stars: ✭ 15 (-68.75%)
Mutual labels:  scale
AndroidBigImage
Automatically generate a new Android application to display, zoom and scroll on a big image!
Stars: ✭ 49 (+2.08%)
Mutual labels:  zoom
yang-db
YANGDB Open-source, Scalable, Non-native Graph database (Powered by Elasticsearch)
Stars: ✭ 92 (+91.67%)
Mutual labels:  scale
serverless-scaleway-functions
Plugin for Serverless Framework to allow users to deploy their serverless applications on Scaleway Functions
Stars: ✭ 58 (+20.83%)
Mutual labels:  scale
react-easy-panzoom
Wrapper to enable pan and zoom features for any React component
Stars: ✭ 69 (+43.75%)
Mutual labels:  zoom
svg-pan-zoom-container
A vanilla-js module for adding zoom-on-wheel and pan-on-drag behavior to inline SVG elements.
Stars: ✭ 31 (-35.42%)
Mutual labels:  zoom
react-scale-text
A React library to keep an element's text scaled to fit it's container
Stars: ✭ 39 (-18.75%)
Mutual labels:  scale
postcss
No description or website provided.
Stars: ✭ 59 (+22.92%)
Mutual labels:  scale
zoom-drive-connector
Automatically uploads Zoom meeting recordings to Google Drive.
Stars: ✭ 25 (-47.92%)
Mutual labels:  zoom
Flutter-KenBurns
Kenburns effect on flutter
Stars: ✭ 82 (+70.83%)
Mutual labels:  scale
FaceAware-Android
this helps to auto zoom for face on ImageView
Stars: ✭ 46 (-4.17%)
Mutual labels:  zoom
aspect-ratio-imageview
A simple imageview which scales the width or height aspect with the given ratio
Stars: ✭ 72 (+50%)
Mutual labels:  scale
ZoomLayout
想要缩放、平移的 View,放在 ZoomLayout 中就可以实现了
Stars: ✭ 34 (-29.17%)
Mutual labels:  zoom
traefik-ondemand-service
Traefik ondemand service for the traefik ondemand plugin
Stars: ✭ 35 (-27.08%)
Mutual labels:  scale
anovos
Anovos - An Open Source Library for Scalable feature engineering Using Apache-Spark
Stars: ✭ 77 (+60.42%)
Mutual labels:  scale
MapCompose
A fast, memory efficient Jetpack Compose library to display tiled maps, with support for markers, paths, and rotation.
Stars: ✭ 82 (+70.83%)
Mutual labels:  zoom
scale.js
High-quality scale function for canvas and image element. If scale factor < 1, then algorithm for downscale (area average) is used, other than that, bicubic algorithm is used.
Stars: ✭ 45 (-6.25%)
Mutual labels:  scale

HTSDCycleScrollView

一款基于SDScrollView的轮播图控件,对源码进行了修改,可切换为滚动时图片带有缩放效果的模式,可改变PageControl小圆点的样式。

更新:修改了卡片拖动的判断偏移量,更易拖动切换卡片。

Show

普通模式:

normal

缩放模式:

zoom

Usage

// 基本使用方式与SDScrollView一致,新增zoomType属性,用于切换普通模式与缩放模式
// ViewController.m

#import "SDCycleScrollView.h"

- (void)viewDidLoad {
    [super viewDidLoad];

    // 轮播图
    SDCycleScrollView *adCycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 100, Screen_Width, 200) delegate:self placeholderImage:[UIImage new]];
    adCycleScrollView.zoomType = YES;  // 是否使用缩放效果,YES为缩放模式,NO为普通模式
    adCycleScrollView.pageControlStyle = SDCycleScrollViewPageContolStyleAnimated;
    adCycleScrollView.scrollDirection = UICollectionViewScrollDirectionHorizontal;
    adCycleScrollView.currentPageDotColor = [UIColor whiteColor];
    adCycleScrollView.pageDotColor = [UIColor colorWithWhite:1 alpha:0.5];
    adCycleScrollView.pageControlDotSize = CGSizeMake(20, 6);  // pageControl小圆点的大小
    //    adCycleScrollView.imageURLStringsGroup = @[];  // 网络图片
    adCycleScrollView.localizationImageNamesGroup = @[@"img1", @"img2", @"img3", @"img4"];  // 本地图片
    [self.view addSubview:adCycleScrollView];

    // 轮播公告
    SDCycleScrollView *noticeView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 350, Screen_Width, 30) delegate:self placeholderImage:nil];
    noticeView.backgroundColor = [UIColor lightGrayColor];
    noticeView.onlyDisplayText = YES;
    noticeView.titlesGroup = @[@"公告1", @"公告2", @"公告3"];
    noticeView.scrollDirection = UICollectionViewScrollDirectionVertical;
    [self.view addSubview:noticeView];
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].