I have a pointer to a UIView. How do I access its UIViewController? [self superview] is another UIView, but not the
UIView
UIViewController
[self superview]
UIView has a variable called window ?
So this will return a view controller
you can access it like this self.window?.rootViewController