Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotlight needs passthrough views #4

Open
alariccole opened this issue Aug 15, 2012 · 2 comments
Open

Spotlight needs passthrough views #4

alariccole opened this issue Aug 15, 2012 · 2 comments
Assignees

Comments

@alariccole
Copy link

As it is currently written, tapping on a control that is highlighted just dismisses the overlay--it does not allow the touch to register with the highlighted item. Some hit detection should be implemented, allowing the highlighted view to "pass through". It is confusing to focus the user on a control but not allow them to use that control.

@ghost ghost assigned mcconkiee Aug 15, 2012
@mcconkiee
Copy link
Owner

i've made a branch to first test if this could suffice for the functionality you note.
https://github.com/mcconkiee/EMHint/tree/passthrough

Look at the example and see the new protocol method that allows a touch to "pass though":
-(BOOL) hintStateShouldAllowTouchPassedThrough:(id)hintState touch:(UITouch*)touch;

@alariccole
Copy link
Author

Awesome. Working for me so far. Will test this on a more complex view hierarchy--one using nested container view controllers that correctly places a UIPopoverController. Might be useful to replicate their API, allowing an array of passthrough views, but I like what you seem to be doing, which is simply setting a flag whether or not to allow pass through of the highlighted items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants