[翻译] PTEHorizontalTableView

简介:

PTEHorizontalTableView

Horizontal UITableView inspired by EasyTableView.

水平滚动的UITableView,灵感来自于EasyTableView.

Features - 特点

  • PTEHorizontalTableView wraps a UITableView rotated horizontally using a CGAffineTransform whose cells' content views are rotated back vertically.
  • PTETableViewDelegate very similar to the standard UITableViewDelegate with some method name such as tableView:widthForCellAtIndexPath:.
  • Support for standard scroll indicators, headers and footers.
  • Full Interface Builder support including creating Static/Prototype Cells using Storyboards.
  • PTEHorizontalTableView封装了一个UITableView,用CGAffineTransform在水平方向上进行了旋转,然后,它的cell的contentView经过了垂直方向的旋转后就又恢复正常显示了.
  • PTETableViewDelegate的代理方法与UITableViewDelegate的代理方法非常相似,你可以很方便的就能使用
  • 支持标准的指示器,headerViews以及footerViews.
  • 支持IB创建,或者是Storyboard创建.

Demo - 示例

A demo project is included in the repository.

你可以参考demo来了解使用方法.

Installation - 安装

Simply add pod 'PTEHorizontalTableView' to your CocoaPodsPodfile.

你只需要在你的CocoaPods的Podfile中加入以下一句话即可.

platform :ios, '5.0'

pod 'PTEHorizontalTableView'

Documentation - 文档

http://cocoadocs.org/docsets/PTEHorizontalTableView/

Usage - 使用

Simply implement the PTETableViewDelegate protocol:

你需要实现代理方法PTETableViewDelegate即可:

@protocol PTETableViewDelegate <NSObject>

- (NSInteger)tableView:(PTEHorizontalTableView *)horizontalTableView
numberOfRowsInSection:(NSInteger)section; - (UITableViewCell *)tableView:(PTEHorizontalTableView *)horizontalTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; @optional - (NSUInteger)numberOfSectionsInTableView:(PTEHorizontalTableView*)horizontalTableView; - (void)tableView:(PTEHorizontalTableView *)horizontalTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; - (UIView*)tableView:(PTEHorizontalTableView*)horizontalTableView viewForHeaderInSection:(NSInteger)section; - (UIView*)tableView:(PTEHorizontalTableView*)horizontalTableView viewForFooterInSection:(NSInteger)section; - (CGFloat)tableView:(PTEHorizontalTableView *)horizontalTableView widthForCellAtIndexPath:(NSIndexPath *)indexPath; @end 

License - 版权

Copyright 2014 Ernesto Rivera

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

目录
相关文章
|
安全 Shell 网络安全
openssh和openssl的区别是什么?
【4月更文挑战第14天】openssh和openssl的区别是什么?
1548 0
|
11月前
|
SQL 安全 PHP
PHP 自发布以来一直在 Web 开发领域占据重要地位,PHP 8 更是带来了属性、刚性类型等新特性。
【10月更文挑战第1天】PHP 自问世以来,凭借其易用性和灵活性,在 Web 开发领域迅速崛起。从简单的网页脚本语言逐步演进为支持面向对象编程的现代语言,尤其自 PHP 5.3 引入命名空间后,代码组织和维护变得更加高效。PHP 7 的性能优化和 PHP 8 的新特性(如属性和刚性类型)进一步巩固了其地位。框架如 Laravel、Symfony、Yii2 和 CodeIgniter 等简化了开发流程,提高了效率和安全性。
153 2
|
JavaScript 前端开发 开发者
哇塞!Vue.js 与 Web Components 携手,掀起前端组件复用风暴,震撼你的开发世界!
【8月更文挑战第30天】这段内容介绍了Vue.js和Web Components在前端开发中的优势及二者结合的可能性。Vue.js提供高效简洁的组件化开发,单个组件包含模板、脚本和样式,方便构建复杂用户界面。Web Components作为新兴技术标准,利用自定义元素、Shadow DOM等技术创建封装性强的自定义HTML元素,实现跨框架复用。结合二者,不仅增强了Web Components的逻辑和交互功能,还实现了Vue.js组件在不同框架中的复用,提高了开发效率和可维护性。未来前端开发中,这种结合将大有可为。
404 0
|
JavaScript API
【Vue 3】effectScope 究竟为何物?其运作机制如何?又能为我们化解哪些难题?
【Vue 3】effectScope 究竟为何物?其运作机制如何?又能为我们化解哪些难题?
|
安全 Java Nacos
【问题篇】整改Nacos漏洞——升级Nacos以及开启鉴权问题整理
【问题篇】整改Nacos漏洞——升级Nacos以及开启鉴权问题整理
1694 0
|
Linux
Linux系统之使用autofs自动挂载nfs共享
Linux系统之使用autofs自动挂载nfs共享
486 1
|
存储 区块链 数据安全/隐私保护
OP链DAPP智能合约流动性质押模式系统开发方案
中心化系统的效率最高,但缺乏公平性
|
JavaScript 前端开发 开发工具
01-Vue简介及开发工具安装
01-Vue简介及开发工具安装
|
移动开发 JSON 小程序
iOS 端自定义开发(一)| 学习笔记
快速学习 iOS 端自定义开发。
iOS 端自定义开发(一)| 学习笔记
|
前端开发 安全 Java
这一篇文章,可以把Java中的类加载器了解的七七八八了
这一篇文章,可以把Java中的类加载器了解的七七八八了
195 0
这一篇文章,可以把Java中的类加载器了解的七七八八了