Get subView's containing view
If I have a view (mainView) in which I have added subViews. How do I get to subviews instance to mainView ?

I have a button in those subviews which when pressed should call a method in mainView, so I tried:

[myButton addTarget:self.presentingViewController action:@selector(myMethod:) forControlerEvents:UIControletcetc];

and

[myButton addTarget:self.parentViewController action:@selector....];

I read that parentViewController now returns nil in iOS 5, but presentingViewController doesn't seem the way to do it because its not presented modally. Its just a subview. Any hints?
Get subView's containing view
===

If I have a view (mainView) in which I have added subViews. How do I get to subviews instance to mainView ?

I have a button in those subviews which when pressed should call a method in mainView, so I tried:

[myButton addTarget:self.presentingViewController action:@selector(myMethod:) forControlerEvents:UIControletcetc];

and

[myButton addTarget:self.parentViewController action:@selector....];

I read that parentViewController now returns nil in iOS 5, but presentingViewController doesn't seem the way to do it because its not presented modally. Its just a subview. Any hints?