All Projects → WZBbiao → Wzbgradualtableview

WZBbiao / Wzbgradualtableview

Licence: mit
一个透明度渐变的TableView

Labels

Projects that are alternatives of or similar to Wzbgradualtableview

Android Extensions
An Android library with modules to quickly bootstrap an Android application.
Stars: ✭ 356 (+456.25%)
Mutual labels:  tableview
Diffabledatasources
💾 A library for backporting UITableView/UICollectionViewDiffableDataSource.
Stars: ✭ 601 (+839.06%)
Mutual labels:  tableview
Legacytableview
simple light weight android library for displaying tabulated data
Stars: ✭ 39 (-39.06%)
Mutual labels:  tableview
Quicktableviewcontroller
A simple way to create a UITableView for settings in Swift.
Stars: ✭ 417 (+551.56%)
Mutual labels:  tableview
Pulltorefreshkit
【Deprecated】Pull to refresh in Swift, easy to use, easy to customize(下拉刷新/QQ/淘宝/优酷/雅虎天气/大众点评)
Stars: ✭ 533 (+732.81%)
Mutual labels:  tableview
Parallaxheader
Simple way to add parallax header to UIScrollView/UITableView written in Swift.
Stars: ✭ 808 (+1162.5%)
Mutual labels:  tableview
Buffer
Swift μ-framework for efficient array diffs and datasource adapters.
Stars: ✭ 349 (+445.31%)
Mutual labels:  tableview
Jexpandabletableview
JExpandableTableView provides out of box support for expandable table cells
Stars: ✭ 53 (-17.19%)
Mutual labels:  tableview
Hvscrollview
这不是框架,只是3个示例程序,给大家提供一个实现这种布局的思路
Stars: ✭ 584 (+812.5%)
Mutual labels:  tableview
Ssplaceholdertableview
SSPlaceholderTableView is Placeholder Library for different different state wise placeHolder for UITableView/UICollectionView. Check https://www.cocoacontrols.com/controls/ssplaceholdertableview
Stars: ✭ 39 (-39.06%)
Mutual labels:  tableview
Flow
Declarative approach to populate and manage UITableViews (see https://github.com/malcommac/FlowKit)
Stars: ✭ 421 (+557.81%)
Mutual labels:  tableview
Listplaceholder
ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views.
Stars: ✭ 511 (+698.44%)
Mutual labels:  tableview
Datagrid
Gem to create tables grids with sortable columns and filters
Stars: ✭ 921 (+1339.06%)
Mutual labels:  tableview
Ezplayer
基于AVPlayer封装的视频播放器,功能丰富,快速集成,可定制性强,支持react-native。
Stars: ✭ 377 (+489.06%)
Mutual labels:  tableview
Sortabletableview
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.
Stars: ✭ 1,019 (+1492.19%)
Mutual labels:  tableview
React Native Tableview Simple
Flexible and lightweight React Native component for UITableView made with pure CSS
Stars: ✭ 357 (+457.81%)
Mutual labels:  tableview
Swipecellkit
A swipeable UITableViewCell or UICollectionViewCell with support for:
Stars: ✭ 5,745 (+8876.56%)
Mutual labels:  tableview
Wrcellview
自定义View,类似tableView的系统cell,使用方便 Custom View, similar to the tableView system cell, easy to use
Stars: ✭ 64 (+0%)
Mutual labels:  tableview
React Native Ezplayer
EZPlayer component for react-native apps
Stars: ✭ 47 (-26.56%)
Mutual labels:  tableview
Modelassistant
Elegant library to manage the interactions between view and model in Swift
Stars: ✭ 26 (-59.37%)
Mutual labels:  tableview

WZBGradualTableView

一个透明度渐变的TableView

很多app用到了这种效果,比如歌词显示、直播间聊天记录等。 效果如下:

image image

使用方法:

/*
 * frame:tableView的frame
 * direction:透明渐进的方向
 * gradualValue:透明范围值,如果只有一个方向,此值传一个NSNumber、NSString即可,值的范围0—1。如果是两个方向,则需要传一个数组,数组里边传两个NSNumber或者NSString
 ***/
+ (instancetype)gradualTableViewWithFrame:(CGRect)frame direction:(WZBTableViewGradualDirection)direction gradualValue:(id)gradualValue;

参数值说明一下,direction代表方向,是一个位移枚举,如果想让tableView顶部渐变,则此值为WZBTableViewGradualDirectionTop,如果为底部渐变,则此值为WZBTableViewGradualDirectionBottom,如果上下都要渐变,则需要WZBTableViewGradualDirectionTop | WZBTableViewGradualDirectionBottom。gradualValue代表渐变范围值,值的范围为0-1,如果想让顶部20%渐变,此值为@(0.2)。如果想顶部底部都有20%渐变,此值为@[@(0.2), @(0.2)]。

如下:

WZBGradualTableView *tableView = [WZBGradualTableView gradualTableViewWithFrame:self.view.bounds direction:(WZBTableViewGradualDirectionTop | WZBTableViewGradualDirectionBottom)  gradualValue:@[@(.3), @0.3]];

则显示效果为:

image

如果这样写

[WZBGradualTableView gradualTableViewWithFrame:CGRectMake(0, self.view.frame.size.height - 180, self.view.frame.size.width, 140) direction:WZBTableViewGradualDirectionTop  gradualValue:@.3f]

效果如下:

image

怎么样,您学会怎么用了吗?

您还可以加入我们的群,大家庭期待您的加入!

image

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].