Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableViewCell Reusability causing Problems [with images] !
    primarykey
    data
    text
    <p>A picture is worth a thousand words, and I am guessing that the pictures posted below clearly convey the problem I am facing now. </p> <p>Here's a little summary:</p> <p>I create a tableView, and each tableViewCell has a <code>textField</code> as a subview. I scroll up and down, and my view gets messed up. I am guessing it is because of <code>Cell Reusability</code>. But I need help with this.</p> <p><strong>Note</strong>: <em>This problem is <strong>not because</strong> of the buttons or the uitextView at the bottom of the screen. If I do not have them, and I have only the first three sections, the textFields get shifted and it messes up a the textFields of several cells. Also notice the textField shift in image 4 compared to other images. The code is pasted here</em> <a href="http://www.pastie.org/2203340" rel="nofollow noreferrer">http://www.pastie.org/2203340</a> </p> <pre><code>**P.S.:** I have added the solution to the problem at the end of the question. </code></pre> <p><strong>This is my normal view</strong></p> <p><img src="https://i.stack.imgur.com/abqKa.png" alt="enter image description here"></p> <p><strong>This is when I scroll down (look below)</strong> </p> <p><img src="https://i.stack.imgur.com/MMWwQ.png" alt="enter image description here"></p> <p><strong>After several scrolls Up and Down... (look below)</strong> <img src="https://i.stack.imgur.com/x8gLT.png" alt="enter image description here"></p> <p><strong>After several more scrolls... (look below)</strong> <img src="https://i.stack.imgur.com/89yXL.png" alt="enter image description here"></p> <p><strong>SOLUTION :</strong> </p> <p>I really thank @caleb and others for pointing me in the right direction and helping me fixing this bug. For those people, whom are also facing the same problem, I thought I should provide a short and sweet answer.</p> <p><strong>Use UITableViewCells with different CellIdentifiers.</strong> That would make sure that the same cell does not get called. </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