Re: finding my UIViewController

2011-08-04 Thread Matt Neuburg
On Thu, 04 Aug 2011 00:07:40 +0800, Roland King said: >Is there any way to find, given a UIView, what the closest presenting >UIViewController is? Walk the responder chain until you come to a UIViewController? UIResponder* r = self; while (![r isKindOfClass: [UIViewController class]])

finding my UIViewController

2011-08-03 Thread Roland King
I feel I've asked this question before but google doesn't think I have. My code is dealing with a button press in a control on a UITableViewCell in a UITableView which is contained in another UIView subclass and on and up through several views until eventually there is a topmost UIView which wa