I'm trying to pop the current view controller from navigation controller. I want to do this from a subview that's buried pretty far down the view hierarchy. In my UIView subclass, I have a method:
- (void)back
{
NSLog(@"View should pop now...");
[[UIApplication sharedApplication] sendAction:@selector(popViewControllerAnimated)
to:nil
from:self
forEvent:nil];
}
But this doesn't work, nor does it throw any sort of error. What is going on here? Why does the action not progress up the responder chain like it's supposed to according to the documentation?