Trial user a little concerned at how broken the documentation is:
Tried Swift first:
// allocate an array of strings:
let sampleArrayOfStrings = ["Kristina Wolfe","Freda Curtis","Jeffery Francis","Eva Lawson","Emmett Santos", "Theresa Bryan", "Jenny Fuller", "Terrell Norris", "Eric Wheeler", "Julius Clayton", "Alfredo Thornton", "Roberto Romero","Orlando Mathis","Eduardo Thomas","Harry Douglas"]
// then create a datasource -- without using the array??
let dataSource = TKDataSource()
Okay, clearly nobody has tested this sample code as that doesn't pass a basic sniff test. I enter the rest of the code as shown and am unsurprised that it produces an empty screen rather than the pictured listview
So I then switch over to the less-desirable objective-C version:
// let's initialize an undeclared variable!
_sampleArrayOfStrings =@[@"Kristina Wolfe",@"Freda Curtis",@"Jeffery Francis",@"Eva Lawson",@"Emmett Santos", @"Theresa Bryan", @"Jenny Fuller", @"Terrell Norris", @"Eric Wheeler", @"Julius Clayton", @"Alfredo Thornton", @"Roberto Romero",@"Orlando Mathis",@"Eduardo Thomas",@"Harry Douglas"];
// and another! (although at least it uses the array)
_dataSource = [[TKDataSource alloc] initWithArray:_sampleArrayOfStrings];
These fixes are relatively straightforward but once again putting in the rest of the code does not result in a visible listview
Can anyone speak to:
- is there a listview sample that works?
- is this an actively developed product? a little surprised to see such obviously broken startup instructions