Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableView push segue triggered multiple times
    primarykey
    data
    text
    <p>I came across a strange bug in my app:</p> <p><strong>The setup</strong></p> <p>A simple Master-Detail app, iPhone style (ie. no split view, no popover, just a navigation controller, a table view controller, and a view controller).</p> <p><img src="https://i.stack.imgur.com/sgGaJ.png" alt="enter image description here"></p> <p><strong>The bug</strong></p> <ol> <li>Touch a "background" part of the table view (the darker grey parts on my screenshot) like a section header or footer.</li> <li>While keeping your finger on the screen, touch a cell multiple times.</li> <li>Release all fingers. The "detail" view will pushed normally, but when touching the back button, you will find that the detail view was stacked as many times as you touched the cell at step 2.</li> </ol> <p><img src="https://i.stack.imgur.com/sCjtY.png" alt="enter image description here"></p> <p>You can also touch multiple cells at step 2 and their destination views will be stacked in the correct order :)</p> <p><strong>Reproduce it</strong></p> <p>I was able to reproduce the bug with a clean, freshly created app, and on the last release of the Twitter app for iPhone (by touching the "Loading" label with finger #1 and touching a tweet multiple times).</p> <p>However, I could not trigger the same behaviour in the Settings app, under the "General" tab (which is a grouped table view).</p> <p>The bug was reproduced on iOS 6.0 and 6.1. I don't have devices with older versions to test.</p> <p><strong>Question</strong></p> <p>Is this a known trick when creating navigation/table view based apps and if so is there a solution to prevent this (weird) behavior ? Or is this an iOS bug (and if so, is it already known from Apple) ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload