Latest 1.0.1
License MIT
Platforms ios 5.1, requires ARC


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": "",
    "authors": {
        "Ingo": "[email protected]"
    "source": {
        "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