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

Detail View User Interaction #4

Open
myell0w opened this issue Dec 26, 2010 · 3 comments
Open

Detail View User Interaction #4

myell0w opened this issue Dec 26, 2010 · 3 comments

Comments

@myell0w
Copy link
Owner

myell0w commented Dec 26, 2010

User Interaction on the detail view currently doesn't work. This is not as easy as setting userInteractionEnabled to YES because the overlay doesn't respond to touches outside it's frame (which the detail view is)

@myell0w
Copy link
Owner Author

myell0w commented Feb 12, 2011

Does anybody have an idea of how to solve this problem?

I can set the overlay-size to the whole UIScreen-Bounds and only show stuff in the portion covering the status bar, but then no touches are transferred to the original targets because MTStatusBarOverlay consumes all the touches. When I set userInteractionEnabled to NO, no touches receive MTStatusBarOverlay. I somehow want to receive the touches on MTStatusBarOverlay and also forward them to the original target, w/o modifying/complicating the way the developer uses/integrates MTStatusBarOverlay in his own app (e.g. overriding sendEvent in the mainWindow).

@vguerci
Copy link
Contributor

vguerci commented Mar 22, 2011

Ah! Tried first userInteractionEnabled...
Then looked into issues, great that I found this one, that enlighted me, thanks :)

I think I've got a pretty simple solution, not the best, but working.
Just adjust the overlay height with the detail view height when showing/hiding it in
- (void)setDetailViewHidden:(BOOL)hidden animated:(BOOL)animated

(Who wants to tap on the 10px margin on sides anyway...)

@myell0w
Copy link
Owner Author

myell0w commented Mar 22, 2011

thanks, I already thought about that too. Unfortunately I don't have much time at the moment to work on this, I would be very happy if you could add this functionality and send me a pull request.

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