Latest 1.0.0
Homepage https://github.com/Daniel-zww/ZMainSlideMenu
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

iOS view controller, shows left and right views by pressing button or gesture.

Preview

Pod

pod 'ZMainSlideMenu'

With source code

import ZMainSlideMenu

Usage

Initialization

You can use view controllers or views to initialize ZMainSlideMenu:

        // StoryBoard初始化
        let slideMenuVC = self.window?.rootViewController as? ZMainSlideMenu
        if let slideMenuVC = slideMenuVC {
            let rootVC = self.getVCWithIdentifier(identifier: "SD_MainVC_ID")
            self.tabbarMainVC = rootVC as? ZMainViewController
            slideMenuVC.setRootViewController(rootViewController: rootVC)

            let leftVC = self.getVCWithIdentifier(identifier: "SD_LeftVC_ID")
            slideMenuVC.setLeftViewController(leftViewController: leftVC)

            //let rightVC = self.getVCWithIdentifier(identifier: "SD_RightVC_ID")
            //slideMenuVC.setRightViewController(rightViewController: rightVC)
        }
        self.slideMenuVC = slideMenuVC

        // 代码初始化
        /*
        let rootVC = self.getVCWithIdentifier(identifier: "SD_MainVC_ID")
        self.tabbarMainVC = rootVC as? ZMainViewController
        self.slideMenuVC = ZMainSlideMenu(rootViewController: rootVC)

        let leftVC = self.getVCWithIdentifier(identifier: "SD_LeftVC_ID")
        self.slideMenuVC?.setLeftViewController(leftViewController: leftVC)

        let rightVC = self.getVCWithIdentifier(identifier: "SD_RightVC_ID")
        self.slideMenuVC?.setRightViewController(rightViewController: rightVC)

        self.window = UIWindow(frame: UIScreen.main.bounds)
        self.window?.rootViewController = self.slideMenuVC
        */

Latest podspec

{
    "name": "ZMainSlideMenu",
    "version": "1.0.0",
    "summary": "ZMainSlideMenu.",
    "description": "ZMainSlideMenu is a simple message View",
    "homepage": "https://github.com/Daniel-zww/ZMainSlideMenu",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "Daniel": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Daniel-zww/ZMainSlideMenu.git",
        "tag": "1.0.0"
    },
    "source_files": "ZMainSlideMenu/*.swift",
    "frameworks": "UIKit",
    "requires_arc": true,
    "module_name": "ZMainSlideMenu",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This