Latest 1.0.1
Homepage https://github.com/Tintenklecks/UIView-viewController-property
License MIT
Platforms ios 5.1, requires ARC
Authors

UIView-viewController-property

UIView category that gives back the corresponding UIViewController for each UIView (and descendant)

Whenever you create a new control or a descendant of UIView and want for example to display a modal dialog or push a ViewController to the Navigation Controller, you need a reference to the corresponding UIViewController, where the view is placed on.

This category adds the property viewController AND navigationController to each and every UIView/UIControl … that´s it ;-)

Where to use it for? Well, if you want to push a new viewController to your navigationController stack … just for example. I think this property should be part of the UIView class

Latest podspec

{
    "name": "UIView+UIViewController-Property",
    "version": "1.0.1",
    "license": "MIT",
    "homepage": "https://github.com/Tintenklecks/UIView-viewController-property",
    "authors": {
        "Ingo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Tintenklecks/UIView-viewController-property.git",
        "tag": "1.0.1"
    },
    "summary": "UIView category that adds a viewController and navigationController property to every UIView (UIButton, UITextField, ...)",
    "source_files": "UIView+Controller.{h,m}",
    "platforms": {
        "ios": "5.1"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This