Latest 1.0.0
Homepage https://github.com/jonstaff/MultiActionDemoViewController
License MIT
Platforms ios 9.0
Authors

There really isn’t much to it—just a simple view controller subclass that allows you to
add Actions as you see fit. I get tired of creating the same boilerplate code over and
over when I’m prototyping small things, so this takes that out of the equation.

An Action is merely a closure that will be invoked when the button is clicked. Just be
careful to use [weak self] if you’re referencing anything on the owning object.

Screenshots



Example

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

Requirements

Only runs on iOS 9.0+ (sorry, I’m lazy and use UIStackView).

Installation

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

pod "MultiActionDemoViewController"

Author

Jonathon Staff, [email protected]

License

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

Latest podspec

{
    "name": "MultiActionDemoViewController",
    "version": "1.0.0",
    "summary": "A simple view controller with buttons and associated actions to simplify testing.",
    "description": "I have a frequent need for loading an app that does a number of specified actions upon clicking a nbutton. To simplify this process for future use, just subclass `MultiActionDemoViewController`n(or instantiate one and add some `Action`s). It will handle all the boilerplate layout of thenbuttons for you.nnThat's really all there is to it.",
    "homepage": "https://github.com/jonstaff/MultiActionDemoViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jonathon Staff": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jonstaff/MultiActionDemoViewController.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "MultiActionDemoViewController/Classes/**/*"
}

Pin It on Pinterest

Share This