The situation is this: My current view is a gridview, when I touch an option, it will add a new UIView, this time not let the hand on the screen,
Continue pulling the fingers, it operated or gridview, instead I later added a new UIView. Only release your finger, touch again, this time the operation is the newly added UIView.
But I need to let go of is not when you can operate the new UIView, (for example, I touch one of a grid, in my place will be a touch UIImageView, then hand did not let go, after my operations are for this picture). Is there any way you?
Reply:
See View touch technology penetration
Reply:
Where can I find information?
Reply:
cocoachina there a
http://stackoverflow.com/ compare all
Reply:
Search keywords it? I used the iPhone View touch technology found not penetrate?
Or you can search a search help, send a link, Thanks!
Reply:
http://www.cocoachina.com/bbs/read.php?tid-25926-keyword-% B4% A9% CD% B8.html
Think way
Reply:
Said above methods are tried, or not. Seems to be some different situations and I described ..
Reply:
Hello, this similar problem considered,
According to UI controls system design, if the first time you touched a control, then, as long as there is no release touch, the event is always the beginning of the control response.
If you need to achieve, at the touch of process control other controls, you need to achieve their own. For example, according to the coordinates of the location of the first control touchMove incident, to calculate what the controls are touch and operate the new controls.
UIViewController system is so achievable.
PS: You can use this API: hitTest
No comments:
Post a Comment