Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13903

iOS: Reading TableView's "sectionCount" property crashes app

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 3.0.2, Release 3.1.0, Release 3.2.0
    • Fix Version/s: Release 9.3.0, Release 9.2.2
    • Component/s: iOS
    • Environment:

      Macbook Pro, OSX 10.7.5
      iOS Simulator v. 6.0 (369.2)
      Ti: 3.0.2 GA, 3.1 GA and 3.2 CI

    • Story Points:
      5
    • Sprint:
      2020 Sprint 21

      Description

      Summary:
      Reading a TableView's sectionCount property causes the app to crash.

      Steps to reproduce:

      1. Build and run the below on iOS.
      2. Notice the app crashes. No error dialog appears.

      var tableView = Ti.UI.createTableView({
      	data: [{ title: 'Row 1' }],
      });
      console.log('@@@ sectionCount: ' + tableView.sectionCount);
      

      Work-Around:
      Fetch the sections array and read its length property.

      console.log('@@@ sectionCount: ' + tableView.sections.length);
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              sko Matej
              Reviewer:
              Vijay Singh
              Tester:
              Sohail Saddique
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-16513
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration