Latest 0.1.0
Homepage https://github.com/ziyincody/MTablesView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

A customized view that contains two tableviews. It allows customized segue between the views. By using this view, it enables similar functionality as a viewcontroller but with any frame size.

Example

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

Requirements

Need project > iOS 9.0 for NSLayoutAnchor to work

Installation

MTablesView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MTablesView"

Implementation

    var sectionTitles = ["ABC", "BCD", "CDE"]

    var mainData = [["ABC","BCD","CDE"],["ABC","BCD","CDE"]]
    var detailedData = [[["ABC","ABC"],["BCD","BCD"],["CDE","CDE"]],[["ABC","ABC"],["BCD","BCD"],["CDE","CDE"]]]

    lazy var mainView:MTablesView = {
        let mTable = MTablesView(viewTitle: "Hi", sectionTitles: self.sectionTitles, mainData: self.mainData, detailedData: self.detailedData)
            mTable.delegate = self
            mTable.selectingOption = true
            mTable.segueDirection = .top
            return mTable
    }()

ScreenShots

mTable.segueDirection = .top

Top Segue

mTable.segueDirection = .right

Right Segue

Author

[email protected]

License

MTablesView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MTablesView",
    "version": "0.1.0",
    "summary": "A UIView with multiple moveable tableviews",
    "description": "This is created for having one UIView contains multiple tableviews to navigate between the views, and perform push segues",
    "homepage": "https://github.com/ziyincody/MTablesView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Cody Wang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ziyincody/MTablesView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MTablesView/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This