PTEz/PTEHorizontalTableView


Horizontal UITableView inspired by EasyTableView.

http://ptez.github.io/PTEHorizontalTableView

License: Apache-2.0

Language: Objective-C

Keywords: horizontal, ios, uitableview


PTEHorizontalTableView

Platform: iOS Version: 1.1.0 License: Apache 2.0 Dependency Status Build Status

Horizontal UITableView inspired by EasyTableView.

Screenshot 1 Screenshot 2

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.

Demo

A demo project is included in the repository.

Installation

Simply add pod 'PTEHorizontalTableView' to your CocoaPods' Podfile.

platform :ios, '8.0'
use_frameworks!

pod 'PTEHorizontalTableView'

Documentation

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

Usage

Simply implement the PTETableViewDelegate protocol:

@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-2017 PTEz.

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.

Project Statistics

Sourcerank 6
Repository Size 64.5 KB
Stars 71
Forks 17
Watchers 7
Open issues 2
Dependencies 2
Contributors 2
Tags 3
Created
Last updated
Last pushed

Top Contributors See all

Ernesto Rivera Konstantinos K.

Packages Referencing this Repo

PTEHorizontalTableView
Horizontal UITableView inspired by EasyTableView.
Latest release 1.1.0 - Updated - 71 stars

Recent Tags See all

1.1.0 October 03, 2017
1.0.1 January 21, 2015
1.0.0 December 08, 2014

Something wrong with this page? Make a suggestion

Last synced: 2018-10-23 03:29:06 UTC

Login to resync this repository