I have a table view which lists a bunch of things. To manipulate the list(delete & duplicate items), I set it so that another table view with a list of options will show up when you press an item in the table view.
So when I press on an item in the table, a smaller table view with delete and duplicate will show. I made sure to make a mask that encompasses the whole screen and is semitransparent will catch any events outside of this small table view. Added both these items to its own group which will be removed if the mask is clicked or when an option is clicked. Call this the dialog.
So expected behaviour:
Press the item in table -> dialog shows up -> click an option, execute
Problem:
When I click on the dialog it does what I ask it to do (delete or duplicate or cancel if i click the mask) BUT after that, the original table still registers a tap event. I made sure I return true for when you touch/tap any of the dialog’s components so I don’ know why the original table underneath is still registering events.
Maybe there’s something I don’t get about how events propagate?
Incidentally, the reason I thought this would work is because I actually have two display groups on top of each other, both featuring a table view with information. I have successfully implemented a tab bar which switches between the table views and have not experienced any event propagation to the underlying view group (although I do not delete these views after clicking on the table, unlike with the dialog).
Thoughts? Thanks in advance for the help.