开发者

UITextField value jumping to another UITextField in UITableViewCell? With video

To be short: 4 sections in tableview, each with 1 row, each row with a textf开发者_StackOverflow社区ield.

When I enter text in the first textfield, press Done, and click one the second textfield, this text will go to the 4th textfield.

Video for this problem(only a few seconds):

http://www.youtube.com/watch?v=9T0GrCdM1PA

Source code for the uitableview:

https://docs.google.com/leaf?id=0BxLbGdIIFl7KMzdlNGZlN2ItZGUwNy00OWU1LTk0M2ItY2QzMGNlNjEwNGZk&hl=en

Any comment or answer is appreciated.

xcode 3.2.6

iOS 4.3


Your code is assuming that each cell is used at index path for which it was created first (you are not configuring cell's content in tableView:cellForRowAtIndexPath:). Don't reuse cells in this method if you want to store text in them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜