• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: finding my UIViewController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >finding my UIViewController (From: Roland King <email@hidden>)
 >Re: finding my UIViewController (From: Juan Fernandez <email@hidden>)
 >Re: finding my UIViewController (From: Roland King <email@hidden>)

  • Prev by Date: Re: Xcode4 : AppleScript : How to get the current text document?
  • Next by Date: Re: Xcode4 : AppleScript : How to get the current text document?
  • Previous by thread: Re: finding my UIViewController
  • Next by thread: Code Snippet: how do you create a place holder?
  • Index(es):
    • Date
    • Thread