文章来源:淘论文网   发布者: 毕业设计   浏览量: 25



还可以点击去查询以下关键词:
[快速]    [我的]    [界面]    [不需要]    [使用]    [tableView]    [效果]    [tableView...]    [快速实现我的界面,不需要使用tableView,但效果和tableView...]   

项目介绍:

WRCellView

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

0️⃣. Demo

1️⃣. Installation 安装

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

2️⃣. 不同风格/** 左侧 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, };3️⃣. 接口- (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;4️⃣. 如何使用- (WRCellView *)signView { if (_signView == nil) { _signView = [[WRCellView alloc] initWithLineStyle:WRCellStyleLabel_LabelIndicator]; _signView.leftLabel.text = @'个性签名'; _signView.rightLabel.text = @'爱别人的同事也是爱自己'; [_signView setLineStyleWithLeftZero]; } return _signView; }

更多信息详见代码,也可查看Demo:
https://github.com/wangrui460/WRCellView

最近更新:
2017.05.04 16:18

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

强烈推荐:超简单!!! iOS设置状态栏、导航栏按钮、标题、颜色、透明度,开题报告,偏移等

https://github.com/wangrui460/WRNavigationBar
https://github.com/wangrui460/WRNavigationBar_swift

欢迎关注我的微博:wangrui460

论文

这里还有:


还可以点击去查询:
[快速]    [我的]    [界面]    [不需要]    [使用]    [tableView]    [效果]    [tableView...]    [快速实现我的界面,不需要使用tableView,但效果和tableView...]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/6585.docx
  • 上一篇:双向滑块毕业设计效果
  • 下一篇:长条形心跳动效,各种自定义属性