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:
- Build and run the below on iOS.
- 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); |