I\'ve done this to get the view:
[self.superview viewWithTag:10]
But how can I get that view\'s viewcontroller. Just like you can get the the v
You can use the -nextResponder
method to do it:
[(YourUIViewController *)[[self.superview viewWithTag:10] nextResponder] doSomething];
According to http://developer.apple.com/library/ios/documentation/uikit/reference/UIResponder_Class/Reference/Reference.html#//apple_ref/occ/instm/UIResponder/nextResponder , "UIView implements this method by returning the UIViewController object that manages it (if it has one) or its superview (if it doesn’t)"