测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | 自定义 |
发布最后发布 | 2016年2月 |
由 Julian Weiss 维护。
以超简单的方式呈现内容。一个可以接收多种类型对象并在几行代码中即时呈现的模板表视图。期望中的视图控制器可以定制,通过访问 contentController.tableView
可以定制表视图,通过几个 ContentTableViewController 选项可以定制单元格。
支持的对象类型
NSString
(纯文本)NSAttributedString
(富文本)NSURL
(超链接)UIImage
(图像)UIView
(自定义视图)ContentVideoItem
(视频 URL)ContentTableViewController *contentController = [[ContentTableViewController alloc] initWithItems:@[@"Hello", @"World"]];
contentController.contentDelegate = self; // for interaction (contentTableViewController:didTapItem:)
要查看和运行 完整的示例项目,请克隆仓库,并在 Example 目录中首先运行 pod install
命令。
Julian (insanj) Weiss,[email protected]
ContentTableViewController: super simple way to present content.
Copyright (C) 2015-2016 Julian (insanj) Weiss
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.