All Projects → wangrui460 → Wrcellview

wangrui460 / Wrcellview

Licence: mit
自定义View,类似tableView的系统cell,使用方便 Custom View, similar to the tableView system cell, easy to use

Projects that are alternatives of or similar to Wrcellview

tcscustomrowactionfactory
TCSTableViewRowActionFactory allows you to setup the swipe actions for cells in a table view using UIView and some other convenient methods
Stars: ✭ 24 (-62.5%)
Mutual labels:  uitableviewcell, tableview, cell
Jhform
JhForm - 自定义表单工具,更加简单,快捷的创建表单、设置页面
Stars: ✭ 108 (+68.75%)
Mutual labels:  tableview, cell
Tdbadgedcell
TDBadgedCell is a table view cell class that adds a badge, similar to the badges in Apple's own apps
Stars: ✭ 1,444 (+2156.25%)
Mutual labels:  tableview, uitableviewcell
React Native Cell Components
Awesome react-native cell components! From a Cell to more complex & awesome components.
Stars: ✭ 177 (+176.56%)
Mutual labels:  tableview, cell
Expandabletable
AZExpandable is a lightweight proxy for UITableView to expand cells.
Stars: ✭ 218 (+240.63%)
Mutual labels:  cell, uitableviewcell
Multiple-collectionView-in-Multiple-tableView-cells
UICollectionView is embed in UITableViewCell. The collection views are horizontal scrollable. The UITableView can have a section title for each UICollectionView and the number of UICollectionView is equal to the number of sections.
Stars: ✭ 23 (-64.06%)
Mutual labels:  uitableviewcell, cell
Ynexpandablecell
✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 4
Stars: ✭ 445 (+595.31%)
Mutual labels:  tableview, cell
Oycountdownmanager
在cell中使用倒计时的处理方法, 全局使用一个NSTimer对象, 支持单列表.多列表.多页面.分页列表使用
Stars: ✭ 317 (+395.31%)
Mutual labels:  tableview, cell
Swipecellkit
A swipeable UITableViewCell or UICollectionViewCell with support for:
Stars: ✭ 5,745 (+8876.56%)
Mutual labels:  tableview, uitableviewcell
UnityTableView
Plugin for Unity 5.6 that implements a Table with an API inspired by Apple's UITableView
Stars: ✭ 27 (-57.81%)
Mutual labels:  uitableviewcell, tableview
Aiforms.settingsview
SettingsView for Xamarin.Forms
Stars: ✭ 274 (+328.13%)
Mutual labels:  tableview, cell
Uitableviewdynamiclayoutcacheheight
🖖高性能的自动计算采用 Autolayout 布局的 UITableViewCell 和 UITableViewHeaderFooterView 的高度,内部自动管理高度缓存。
Stars: ✭ 360 (+462.5%)
Mutual labels:  cell, uitableviewcell
Tablekit
Type-safe declarative table views.
Stars: ✭ 567 (+785.94%)
Mutual labels:  uitableviewcell
Datagrid
Gem to create tables grids with sortable columns and filters
Stars: ✭ 921 (+1339.06%)
Mutual labels:  tableview
Expandablecell
✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 5
Stars: ✭ 559 (+773.44%)
Mutual labels:  cell
Pulltorefreshkit
【Deprecated】Pull to refresh in Swift, easy to use, easy to customize(下拉刷新/QQ/淘宝/优酷/雅虎天气/大众点评)
Stars: ✭ 533 (+732.81%)
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
Jquery Rslitegrid
Input tabular data with your keyboard
Stars: ✭ 5 (-92.19%)
Mutual labels:  cell
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
Flow
Declarative approach to populate and manage UITableViews (see https://github.com/malcommac/FlowKit)
Stars: ✭ 421 (+557.81%)
Mutual labels:  tableview

WRCellView

自定义View,类似tableView的系统cell,使用方便

0️⃣. Demo

image image image image

1️⃣. Installation 安装

手动拖入 将 WRCellView 文件夹拽入项目中,导入头文件:#import "WRCellView.h"

2️⃣. How To Use 使用

**1.以下是常用的style **

/**
左侧 icon label  右侧 icon  label indicator
0x   1    1          1     1       1

按位与运算 按位与运算符"&"是双目运算符。其功能是参与运算的两数各对应的二进位相与。只有对应的两个二进位均为1时,结果位才为1 ,否则为0。参与运算的数以补码方式出现。
例如:9 & 5 可写算式如下: 00001001 & 00000101 = 00000001; 可见 9 & 5 = 1。
*/
typedef NS_ENUM(NSInteger, WRCellStyle)
{   // 以下列举的都是常用的
    WRCellStyle_Label                   = 0x10,
    WRCellStyleLabel_                   = 0x1000,
    WRCellStyleLabel_Indicator          = 0x1001,
    WRCellStyleLabel_IconLabelIndicator = 0x1111,
    WRCellStyleLabel_LabelIndicator     = 0x1011,
    WRCellStyleLabel_Label              = 0x1010,
    WRCellStyleLabel_Icon               = 0x1100,
    WRCellStyleLabel_IconIndicator      = 0x1101,
    WRCellStyleIcon_Indicator           = 0x10001,
    WRCellStyleIconLabel_Indicator      = 0x11001,
    WRCellStyleIconLabel_Icon           = 0x11100,
    WRCellStyleIconLabel_LabelIndicator = 0x11011,
};

2. 接口

- (instancetype)initWithFrame:(CGRect)frame lineStyle:(WRCellStyle)style;
- (instancetype)initWithLineStyle:(WRCellStyle)style;
/** 设置底部的那条线距左边为0 */
- (void)setLineStyleWithLeftZero;
/** 设置底部的那条线与label的左侧对齐 */
- (void)setLineStyleWithLeftEqualLabelLeft;
/** 设置隐藏底部的那条线 */
- (void)setHideBottomLine:(BOOL)hideBottomLine;
/** 显示上面的横线,默认不显示 */
- (void)setShowTopLine:(BOOL)showTopLine;
/** 设置自己不可以点击 */
- (void)setCanNotSelected;

3. 举例说明

- (WRCellView *)signView {
    if (_signView == nil) {
        _signView = [[WRCellView alloc] initWithLineStyle:WRCellStyleLabel_LabelIndicator];
        _signView.leftLabel.text = @"个性签名";
        _signView.rightLabel.text = @"爱别人的同事也是爱自己";
        [_signView setLineStyleWithLeftZero];
    }
    return _signView;
}

3️⃣. More 更多

If you find a bug, please create a issue.
Welcome to pull requests.
More infomation please view code.
如果你发现了bug,请提一个issue。
欢迎给我提pull requests。
更多信息详见代码,也可查看我的简书: 我的简书

最近更新: 2017.05.04 16:18

  1. 添加自定义view Demo 2. 设置不可点击接口

4️⃣. 期待

如果在使用过程中遇到BUG,或发现功能不够用,希望你能Issues我 如果觉得好用请Star! 谢谢!

你觉得对你有所帮助的话,请献上宝贵的Star!!! 不胜感激!!!

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