cocoa touch - Getting touches at launch on iOS -


on mac, 1 can location of mouse "outside event stream" (ie, if you've not subscribed delegate methods mouseup: et al) calling [nsevent mouselocation].

is there way on ios current touch events without listening touchesbegan:?

i ask because there @ least 1 situation in touchesbegan not called: at app launch, if touch in progress, touchesbegan never called. in fact, neither of touch-related uievent methods called near can tell (nor uiapplication's / uiwindow's sendevent:, apparently).

i vary behavior of app based on whether touch in progress @ launch. is there way detect in-progress touch @ app launch?

this cannot done. simple reason: touch events don't belong app. each touch belongs ui element (or responder). know, element gets began, moved, ended, cancelled messages.

this true within programmed app: events regarding one touch delivered same object. after all, how object know event, , how should first object finish expected behavior?

while can (or could, shouldn't) find work around within app, there's no way cross-app-touch passings.

and on mac may query mouse position, in normal application flow there'll mouse down before mouse event.

to honest, don't see reason why needed anyway... oh wait... split app icon several areas... not sure if break privacy laws, though, if know user has icon on screen.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -