Latest 1.0.1
Homepage https://github.com/buptwsg/WXTabbedTableViewController
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIkit
Authors

About WXTabbedTableViewController

WXTabbedTableViewController is a handy view controller class, it manages a table view which can have one or more table views or collection views as pages.
These pages can be switched by horizontal scrolling or clicking their title.

See below gif for what this view controller can do.

WXTabbedTableViewController

Usage

To use this view controller, all you have to do is:

  • Subclass your view controller from WXTabbedTableViewController
  • Subclass your tab item view from WXTabItemBaseView
  • override - (NSArray<NSString *> *)tabTitles to set tab title strings
  • override - (WXTabItemBaseView*)itemViewAtIndex: (NSUInteger)index size: (CGSize)viewSize to create instance of your own tab item view

The framework provides a default tab title view, and you can customize its appearance through the properties of WXTabTitleView. If you want to
use your own title view, then you must:

  • Subclass your title view from UIView and conforms to protocol WXTabTitleViewProtocol
  • In your subclass of WXTabbedTableViewController, override - (UIView<WXTabTitleViewProtocol> *)tabTitleView to create instance of your own tab title view

For example usage, see demos.

Prerequisites

  • iOS 7.0 or higher
  • Xcode 9 or higher

Installation

To install using CocoaPods, add the following to your project Podfile:

pod 'WXTabbedTableViewController'

To install using Carthage, add the following to your project Cartfile:

github "buptwsg/WXTabbedTableViewController"

To install manually, drag and drop folder TabbedTableViewController into your Xcode project, agreeing to copy files if needed.

License

WXTabbedTableViewController is released under a MIT License. See LICENSE file for details.

Latest podspec

{
    "name": "WXTabbedTableViewController",
    "version": "1.0.1",
    "summary": "A handy view controller class, it manages a table view which can have one or more table views or collection views as pages.",
    "homepage": "https://github.com/buptwsg/WXTabbedTableViewController",
    "license": "MIT",
    "authors": {
        "buptwsg": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/buptwsg/WXTabbedTableViewController.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "TabbedTableViewController",
        "TabbedTableViewController/*.{h,m}"
    ],
    "frameworks": "UIkit",
    "requires_arc": true
}

Pin It on Pinterest

Share This