I have a pointer to a UIView. How do I access its UIViewController? [self superview] is another UIView, but not the
If you are not familiar with the code and you want to find ViewController coresponding to given view, then you can try:
po (UIView *)0x7fe523bd3000
po [(UIView *)0x7fe523bd3000 nextResponder]
po [[(UIView *)0x7fe523bd3000 nextResponder] nextResponder]
po [[[(UIView *)0x7fe523bd3000 nextResponder] nextResponder] nextResponder]
...
In most cases you will get UIView, but from time to time there will be UIViewController based class.