Latest 0.0.2
Homepage https://github.com/ZacharyKhan/ZKNavigationController
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Demo

ZKNavigationController

Example

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

Requirements

Set your Navigation Controller AND module to ZKNavigationController via storyboard or in viewDidLoad().

then import ZKNavigationController in your viewController.

Installation

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

pod "ZKNavigationController"

Usage

import UIKit
import Foundation
import ZKNavigationController

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    @IBAction func showAlertButtonHandler(sender: AnyObject) {
        self.show(withIcon: true)
    }

    @IBAction func showWithoutIconHandler(sender: AnyObject) {
        self.show(withIcon: false)
    }

    func show(withIcon withIcon:Bool!) {
        if let navController : ZKNavigationController = self.navigationController as? ZKNavigationController {
            if !withIcon {
                let popupView = ZKNavigationPopupView(navigationController: navController, Icon: nil, Message: "Showing a ZKAlert")
                navController.showAlert(popupView)
            } else {
                let icon = ZKIcon(image: UIImage(named: "image"))
                let popupView = ZKNavigationPopupView(navigationController: navController, Icon: icon, Message: "Showing a ZKAlert")
                navController.showAlert(popupView)
            }
        } else {
            print("Navigation controller is not of type ZKNavigationController")
        }
    }
}

Contribution

If you would like to contribute to ZKNagivationController, please fork the repo.

For ALL feature requests and bugs, please submit an issue.

Author

You can reach me on Twitter -> @ZacharyKhan3

License

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

Latest podspec

{
    "name": "ZKNavigationController",
    "version": "0.0.2",
    "summary": "Simple, yet clean way to show alerts via NavigationController",
    "description": "ZKNavigationController is a simple way to notify your users in a captivating way!",
    "homepage": "https://github.com/ZacharyKhan/ZKNavigationController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ZacharyKhan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ZacharyKhan/ZKNavigationController.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ZKNavigationController/Classes/**/*"
}

Pin It on Pinterest

Share This