Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1834] iOS: hasDetail image click event sometimes does not report the correct row index - iphone

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2012-08-20T16:20:48.000+0000
Affected Version/sRelease 1.5.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterctredway
AssigneeNeeraj Gupta
Created2011-04-15T03:03:31.000+0000
Updated2017-03-09T22:59:07.000+0000

Description

On the iphone, sdk 4.0.2 titanium 1.4.1, sometimes after a scroll has happened, when pressing the hasDetail image, the wrong row index is reported.

See this HD ticket for code.

http://developer.appcelerator.com/helpdesk/view/42231">http://developer.appcelerator.com/helpdesk/view/42231

Comments

  1. Ralf Pfeiffer 2011-04-15

    Assigning to Jay... This is an opportunistic fix for R1.5

  2. jtobias 2011-04-15

    Downloaded CollegeSearch and hooked up iPhone to Xcdoe Organizer Window -> Console to see output of exact row and entry. Have yet to see the intermittent error, but also trying Clint's or Richard Baubaum's "simple" app.

  3. jtobias 2011-04-15

    Think I just caught it - browsing the California School list, all under "University of California: ", every 3 to 5 times the school info is NOT for the school chosen by the rightmost, blue arrow. I haven't got an index out of the range yet, but on several occasions did set the school information, notably the name, differ from that shown in the table view row:

    The first time I click on University of California, Irvine, the detailed data was for "Scripps College"
    -> For an alphabetical list, this isn't just an off-by-one-error, this is WAY off -> The first click, per the Xcode Organizer Console output below, shows "index=105, src=ROW, id=565", and -> the second click, of the same row, ended up with the right college, &"index=121, src=ROW, id=615"

    DEBUG OUTPUT FROM Console (using my personal iPhone 4 running the latest iOS GM 4.2) (8B117)

    Tue Nov 16 16:24:42 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] clicked on table view:

    Tue Nov 16 16:24:42 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : index=105, src=ROW, id=565

    Tue Nov 16 16:24:42 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] iphone

    Tue Nov 16 16:24:42 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] getschool.js: id=565, type=st

    Tue Nov 16 16:24:44 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] load from POST: 200: 565:Scripps College:Claremont:CA:40450:40450:12450:1011:address:34.103738:-117.711323:685:640:730:660:620:700:640:730:4:PRIVATE:1926:11:Suburban:99:43:30:830:http://www.scrippscol.edu:909-621-8000:admission@scrippscol.edu:30:0:0:0:0:0:0">www.scrippscol.edu:909-621-8000:admission@scrippscol.edu:30:0:0:0:0...

    Tue Nov 16 16:24:44 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] RECENTS: 14 entries

    Tue Nov 16 16:24:44 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] ADDED @ 0: 565:Scripps College

    Tue Nov 16 16:25:01 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] clicked on table view:

    Tue Nov 16 16:25:01 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : index=121, src=ROW, id=615

    Tue Nov 16 16:25:02 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] iphone

    Tue Nov 16 16:25:02 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] getschool.js: id=615, type=st

    Tue Nov 16 16:25:04 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] load from POST: 200: 615:University of California:Irvine:CA:11961:34840:11400:1011:address:33.645193:-117.842778:560:510:610:615:560:670:520:620:4:PUBLIC:1965:23:Suburban:51:56:22:19179:http://www.uci.edu:949-856-6703:admissions@uci.edu:68:21:27:24:29:0:0">www.uci.edu:949-856-6703:admissions@uci.edu:68:21:27:24:29:0:0

    Tue Nov 16 16:25:04 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] RECENTS: 15 entries

    Tue Nov 16 16:25:04 jPhone4 UIKitApplication:com.archimedes.collegesearch[0xe747][3756] : [INFO] ADDED @ 0: 615:University of California

  4. jtobias 2011-04-15

    I also reproduced this much more quickly using the "reduced app" provided by Richard Baughman in his files app.js and newwin.js on 1.4.2 and 1.5.0 and 1.4.1.1. Am now going forth into the code for Table View to see what's askew.

  5. Junaid Younus 2012-08-20

    No test case and link doesn't work anymore, ticket marked as invalid.
  6. Neeraj Gupta 2012-08-20

    Please reopen this ticket if you can provide a test case or better description to reproduce this issue.
  7. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source