Latest 0.3.2
Homepage https://github.com/Hotel-Reservation-Service/HRSAdvancedTableViews
License Apache License, Version 2.0
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

CI Status

License
Platform

Version
Release
Issues

The Advanced Table Views library is a set of modules that make handling table views more convenient. The different modules are split into cocoapods subspecs so that you can only include the modules you are interested in. Some of the modules (like HRSIndexPathMapping) have advantages that might also be useful for other tasks than just table views, however they are mainly designed for the work with table views.

Modules

Below you see a short overview about the various modules in this project. For a more detailed info about each of the modules, please refer to the wiki page on GitHub.

HRSSectionController

The section controller module deals with the problem of overloaded table view controllers. It separates the data model of a table view by its sections. Each section has its own controller that is responsible for providing the table view with the information it needs by implementing the necessary methods from UITableViewDelegate and UITableViewDataSource.

HRSIndexPathMapping

The index path mapping module is used for mapping index paths of every kind through a visibility / active state. This is mostly used to map index paths in the UITableView or UICollectionView context but can be used by every other logic that deals with index paths and needs to map between two sets of index paths based on various conditions.

In practice, this is used to collapse or hide a couple of rows or sections inside a table view based on your current model data.

Requirements

Installation

HRSAdvancedTableViews is available through CocoaPods. To install it, simply add the following line to your Podfile if you want to install all of the modules:

pod "HRSAdvancedTableViews", "~> 0.1"

Please note that we version our releases based on Semantic Versioning, so it is save to advice cocoapods to use every minor and patch version within a major version.

If you only want to install a specific module, use one of the following lines:

pod "HRSAdvancedTableViews/HRSSectionController"
pod "HRSAdvancedTableViews/HRSIndexPathMapping"

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

The example project gives you a list of available samples, grouped by the different modules in the project.

License

HRSAdvancedTableViews is available under the Apache License, Version 2.0 license. See the LICENSE file for more info.

Latest podspec

{
    "name": "HRSAdvancedTableViews",
    "version": "0.3.2",
    "summary": "HRSAdvancedTableViews is a collection of useful table view additions, split into several subspecs.",
    "description": "The Advanced Table Views library is a set of modules that make handling table views more convenient. The different modules are split into cocoapods subspecs so that you can only include the modules you are interested in. Some of the modules (like `HRSIndexPathMapping`) have advantages that might also be useful for other tasks than just table views, however they are mainly designed for the work with table views.nnn# HRSSectionControllernnThe section controller module deals with the problem of overloaded table view controllers. It separates the data model of a table view by its sections. Each section has its own controller that is responsible for providing the table view with the information it needs by implementing the necessary methods from `UITableViewDelegate` and `UITableViewDataSource`.nnn# HRSIndexPathMappingnnThe index path mapping module is used for mapping index paths of every kind through a visibility / active state. This is mostly used to map index paths in the `UITableView` or `UICollectionView` context but can be used by every other logic that deals with index paths and needs to map between two sets of index paths based on various conditions.nnIn practice, this is used to collapse or hide a couple of rows or sections inside a table view based on your current model data.",
    "homepage": "https://github.com/Hotel-Reservation-Service/HRSAdvancedTableViews",
    "license": "Apache License, Version 2.0",
    "authors": {
        "HRS Hotel Reservation Service, Michael Ochs": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Hotel-Reservation-Service/HRSAdvancedTableViews.git",
        "tag": "0.3.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "frameworks": "UIKit",
    "subspecs": [
        {
            "name": "HRSSectionController",
            "source_files": "Pod/Classes/HRSSectionController/**/*.{h,m}",
            "public_header_files": "Pod/Classes/HRSSectionController/*.h"
        },
        {
            "name": "HRSIndexPathMapping",
            "source_files": "Pod/Classes/HRSIndexPathMapping/**/*.{h,m}",
            "public_header_files": "Pod/Classes/HRSIndexPathMapping/*.h"
        }
    ]
}

Pin It on Pinterest

Share This