Kitchen Sink 1.3.3 / Table Views Error
I used API 2.2 to launch the kitchen sink. When I tried to click on Views > Table Views example
<br>
I have the following SDKs installed:<br>
- SDK Platform Android 2.2<br>
- SDK Platform Android 2.1 -updated 1<br>
- SDK Platform Android 1.6<br>
- Google APIs by Google Inc, Android API 8<br>
- Google APIs by Google Inc, Android API 4<br>
RunTime Error<br>
Location: [70,0]app://examples/table_views.js
<br>
Message: TypeError:; Cannot read property "GRAY" from undefined (app://examples/table_views.js#70)
I clicked "continue" and see a green/olive background with nothing. Has anyone come across this ?
Thanks.
2 Answers
-
Accepted Answer
HC
Why are you using an outdated version of the KS? The current version is 1.4. You can download it here
-
[UPDATE]I download this kitchen sink package from https://github.com/appcelerator/KitchenSink/archives/1.3.3
Here's the snippet of the code that calls for GRAY at line 78 of table_views.js. I commented out this line and I could get the various examples to load.
// create table view
var tableViewOptions = {
data:data,
style:Titanium.UI.iPhone.TableViewStyle.GROUPED,
headerTitle:'TableView examples and test cases',
footerTitle:"Wow. That was cool!",
backgroundColor:'transparent',
rowBackgroundColor:'white',
selectionStyle:Ti.UI.iPhone.TableViewCellSelectionStyle.GRAY
};