ios - Multiple UIWindows and touch events -
i have created second window , add on top of default :
[topwindow makekeyandvisible]; topwindow.hidden = no;
it works top window block access of application's default window. want know if it's possible if there no element ( button exemple ) in top window @ given place of screen, can access elements of default window @ below.
i hope understandable. sorry english. advance help.
i have created second window , add on top
so, think usual expectation there's 1 window per screen in ios app. the docs seem imply this:
every app has 1 window displays app’s user interface on ios-based device display. if external display connected device, app can create second window present content on display well.
it's possible ios assumes there's 1 window per screen, , hit-testing process considers 1 window, key window. since you're making second window key window, i'd suggest making first window key after create second window , see if changes things. wouldn't surprising if first window receives touches , second doesn't. if find that's case, might subclass uiwindow
, override -hittest:withevent:
pass event other windows if no hit view found, , use subclass both windows.
otherwise, if can't work, consider going single window , using different views instead. question similar make view appear in every view, inside app, , my suggestion there create own container view controller might you.
Comments
Post a Comment