Re: finding my UIViewController
Re: finding my UIViewController
- Subject: Re: finding my UIViewController
- From: Hamish Allan <email@hidden>
- Date: Thu, 04 Aug 2011 13:35:39 +0100
On 4 August 2011 13:05, Roland King <email@hidden> wrote:
> To Hamish, thanks for the suggestion about the responder chain. That would
> so nearly work, except all the smarts about how to configure the thing I
> need to present modally are in the UIView containing the button, so that has
> to be the target of the button you hit.
You don't need to walk the responder chain manually; simply send
another nil-targeted message programmatically from the view in
question:
[[UIApplication sharedApplication] sendAction:@selector(foo) to:nil
from:self forEvent:nil];
H
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden