• Stars
    star
    202
  • Rank 193,691 (Top 4 %)
  • Language
    Objective-C
  • Created about 14 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Multiple UITableViews in a UIScrollView

#PanelTableView for iOS Creates a UIViewController with multiple UITableView in a UIScrollView

Features

  • recycle views efficiently
  • save/restore table offsets for different panels
  • delegate and datasource similar to that of UITableView
  • PanelIndexPath behaves like IndexPath, but with an additional parameter, page

Instructions

  1. Drag required files to your XCode Project

    PanelIndexPath.h & PanelIndexPath.m PanelView.h & PanelView.m PanelsViewController.h & PanelsViewController.m

  2. Create a UIViewController that subclasses PanelsViewController

  3. PanelsViewController contains a set of delegate/datasource methods that should be overridden in the subclass

Specifies the number of panels to create, similar to numberOfSectionsInTableView:

- (NSInteger)numberOfPanels

Specifies the number of rows in a particular page, at a particular section, similar to tableView:numberOfRowsInSection:

- (NSInteger)panelView:(PanelView *)panelView numberOfRowsInPage:(NSInteger)page section:(NSInteger)section

Similar to tableView:cellForRowAtIndexPath:

- (UITableViewCell *)panelView:(PanelView *)panelView cellForRowAtIndexPath:(PanelIndexPath *)indexPath

Create the panel. to create custom panels, subclass PanelView

- (PanelView *)panelForPage:(NSInteger)page

Similar to tableView:didSelectRowAtIndexPath:

- (void)panelView:(PanelView *)panelView didSelectRowAtIndexPath:(PanelIndexPath *)indexPath

Contact

honcheng.com
@honcheng

More Repositories

1

PaperFold-for-iOS

Paper folding animation for iOS
Objective-C
2,700
star
2

RTLabel

simple rich text display for iOS using html-like markups
Objective-C
1,462
star
3

iOSPlot

Chart library for iOS
Objective-C
1,371
star
4

iOS-StyledPageControl

Customizable PageControl for iOS
Objective-C
526
star
5

PaperFoldMenuController

A navigation menu on the left of the screen using on PaperFold
Objective-C
436
star
6

PaperFoldGallery

PaperFoldGallery for iOS
Objective-C
359
star
7

CATransform3D-Test

A test app to visualize view transformation when value in CATransform3D matrices change
Objective-C
349
star
8

StyledTableViewCell-for-iOS

Customize table view cell border and highlights
Objective-C
195
star
9

SliderPageControl-for-iOS

An alternative for UIPageControl
Objective-C
137
star
10

AcornCharts-for-iOS

Fun way to display charts using balls that responds to device tilting
Objective-C
113
star
11

ScrollableTabHost-for-Android

Java
90
star
12

iOS-nodechat

iOS chat client for socket.io & node.js backend
Objective-C
70
star
13

GAE-APIMonitor

Google AppEngine application that monitors server API
Python
25
star
14

GAEMobileAnalytics

Google AppEngine Analytics for Mobile Applications
Objective-C
17
star
15

CAMediaTimingFunctionVisualizer

iPad app to preview animation based on custom animation curve created
Objective-C
17
star
16

Singapore-Bus-Services

Singapore Bus Services
6
star
17

rfremote-fan-api

API to control RF fan using pilight in Raspberry Pi
Python
5
star
18

SubRip-Parser-for-iOS

Objective-C
5
star
19

homebridge-rfremote-fan

HomeBridge plugin to replace RF remote control for fans
JavaScript
3
star