i'm not used working on native ios code. excuse me missing obvious here.
the issue i'm having right now, when user holding down touch, , before releasing, native popup appears (low battery, timer, ...), not fire call touchescancelled. instead, fires touchesended when user stops touching screen.
however, touchedended user reaction popup, not active decision using app, , might lead incorrect , frustrating behaviour.
as far can tell, touchescancelled should fired when focus lost, seems focus not lost in case.
i wondering if there other way detect native popup opened, , have app act touchescancelled fired, , avoid unintentional behaviour.
i've tested apps apple , have same (in opinion) wrong behaviour. maybe it's have live with, want reach out more experienced native ios devs, , sure of it.
thanks, sascha
i returned issue today. found out when native popup appears, there call app applicationwillresignactive , applicationdidbecomeactive respectively.
in solution, @ moment applicationwillresignactive called, make app act if there touchescancelled each touch had began without end or cancel. when actual touchesended gets called, gets ignored no longer matches touchesbegan in app.
it feels bit jumping hoops, trick quit nicely me.
Comments
Post a Comment