{"id":27887498,"url":"https://github.com/wangrui460/wrcellview","last_synced_at":"2025-05-05T08:06:45.869Z","repository":{"id":264141338,"uuid":"89207671","full_name":"wangrui460/WRCellView","owner":"wangrui460","description":"自定义View，类似tableView的系统cell，使用方便 Custom View, similar to the tableView system cell, easy to use","archived":false,"fork":false,"pushed_at":"2021-07-09T09:54:05.000Z","size":455,"stargazers_count":64,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T08:06:40.977Z","etag":null,"topics":["cell","info","mine","setting","tableview","tableviewcell","uitableviewcell"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangrui460.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-24T06:58:28.000Z","updated_at":"2024-07-22T06:03:49.000Z","dependencies_parsed_at":"2024-11-22T09:15:12.587Z","dependency_job_id":null,"html_url":"https://github.com/wangrui460/WRCellView","commit_stats":null,"previous_names":["wangrui460/wrcellview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCellView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCellView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCellView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCellView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangrui460","download_url":"https://codeload.github.com/wangrui460/WRCellView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252463424,"owners_count":21751763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cell","info","mine","setting","tableview","tableviewcell","uitableviewcell"],"created_at":"2025-05-05T08:06:39.312Z","updated_at":"2025-05-05T08:06:45.859Z","avatar_url":"https://github.com/wangrui460.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WRCellView\n自定义View，类似tableView的系统cell，使用方便\n\n## iOS 技术交流\n我创建了一个 微信 iOS 技术交流群，欢迎小伙伴们加入一起交流学习~\n\t\n可以加我微信我拉你进去（备注iOS），我的微信号 wr1204607318\n\n## 0️⃣. Demo \n![image](https://github.com/wangrui460/WRCellView/raw/master/screenshots/微信个人信息.png)\n![image](https://github.com/wangrui460/WRCellView/raw/master/screenshots/高德地图我的.png)\n![image](https://github.com/wangrui460/WRCellView/raw/master/screenshots/NBA更多.png)\n![image](https://github.com/wangrui460/WRCellView/raw/master/screenshots/自定义view.png)\n\n## 1️⃣. Installation 安装\n\n\u003e **手动拖入**\n\u003e 将 WRCellView 文件夹拽入项目中，导入头文件：#import \"WRCellView.h\"\n\n## 2️⃣. How To Use 使用\n\n**1.以下是常用的style **\n```\n/**\n左侧 icon label  右侧 icon  label indicator\n0x   1    1          1     1       1\n\n按位与运算 按位与运算符\"\u0026\"是双目运算符。其功能是参与运算的两数各对应的二进位相与。只有对应的两个二进位均为1时，结果位才为1 ，否则为0。参与运算的数以补码方式出现。\n例如：9 \u0026 5 可写算式如下： 00001001 \u0026 00000101 = 00000001; 可见 9 \u0026 5 = 1。\n*/\ntypedef NS_ENUM(NSInteger, WRCellStyle)\n{   // 以下列举的都是常用的\n    WRCellStyle_Label                   = 0x10,\n    WRCellStyleLabel_                   = 0x1000,\n    WRCellStyleLabel_Indicator          = 0x1001,\n    WRCellStyleLabel_IconLabelIndicator = 0x1111,\n    WRCellStyleLabel_LabelIndicator     = 0x1011,\n    WRCellStyleLabel_Label              = 0x1010,\n    WRCellStyleLabel_Icon               = 0x1100,\n    WRCellStyleLabel_IconIndicator      = 0x1101,\n    WRCellStyleIcon_Indicator           = 0x10001,\n    WRCellStyleIconLabel_Indicator      = 0x11001,\n    WRCellStyleIconLabel_Icon           = 0x11100,\n    WRCellStyleIconLabel_LabelIndicator = 0x11011,\n};\n```\n\n**2. 接口**\n```\n- (instancetype)initWithFrame:(CGRect)frame lineStyle:(WRCellStyle)style;\n- (instancetype)initWithLineStyle:(WRCellStyle)style;\n/** 设置底部的那条线距左边为0 */\n- (void)setLineStyleWithLeftZero;\n/** 设置底部的那条线与label的左侧对齐 */\n- (void)setLineStyleWithLeftEqualLabelLeft;\n/** 设置隐藏底部的那条线 */\n- (void)setHideBottomLine:(BOOL)hideBottomLine;\n/** 显示上面的横线，默认不显示 */\n- (void)setShowTopLine:(BOOL)showTopLine;\n/** 设置自己不可以点击 */\n- (void)setCanNotSelected;\n```\n\n**3. 举例说明**\n```\n- (WRCellView *)signView {\n    if (_signView == nil) {\n        _signView = [[WRCellView alloc] initWithLineStyle:WRCellStyleLabel_LabelIndicator];\n        _signView.leftLabel.text = @\"个性签名\";\n        _signView.rightLabel.text = @\"爱别人的同事也是爱自己\";\n        [_signView setLineStyleWithLeftZero];\n    }\n    return _signView;\n}\n```\n\n\n## 3️⃣. More 更多 \n\nIf you find a bug, please create a issue.  \nWelcome to pull requests.  \nMore infomation please view code.  \n如果你发现了bug，请提一个issue。  \n欢迎给我提pull requests。  \n更多信息详见代码，也可查看我的简书: [我的简书](http://www.jianshu.com/p/540a7e6f7b40)\n\n**最近更新:** \n2017.05.04 16:18\n1. 添加自定义view Demo  2. 设置不可点击接口\n\n\n## 4️⃣. 联系我\n扫码回复1获取面试资料（持续更新）\n![](https://user-images.githubusercontent.com/11909313/123933944-6a4abe00-d9c5-11eb-83ca-379313a2af7c.png)\n\n你觉得对你有所帮助的话，请献上宝贵的Star！！！ 不胜感激！！！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangrui460%2Fwrcellview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangrui460%2Fwrcellview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangrui460%2Fwrcellview/lists"}