UIView+UIViewController-Property 1.0.1

UIView+UIViewController-Property 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total1,805
Week0
Month0

Installs

Apps23
Test Targets1
powered by Segment

GitHub

Stars1
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 30


  • By
  • Ingo

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