This is a migrated thread and some comments may be shown as answers.

Listview sample doesn't work

3 Answers 33 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matt
Top achievements
Rank 1
Matt asked on 19 Feb 2017, 06:36 AM

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

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 22 Feb 2017, 12:30 PM
Hello Matt,

Thanks for writing and for the valuable feedback!

We are going to review the source of the examples and address the issues that you are pointing out as soon as possible.

Did you manage to get started with TKListView despite the issues or you need more assistance from us?

Thanks again and please accept our apologizes for the rough getting started experience.

Regards,
Deyan
Telerik by Progress
Want to build beautiful Android apps as well? Check out UI for Android which enables the same set of scenarios, allowing you to create the same great app experience on both iOS and Android.
0
Matt
Top achievements
Rank 1
answered on 23 Feb 2017, 12:46 AM

Thanks Deyan;

I was able to move forward by examining the source code in the provide xcode project - thank you!

It did take a while to isolate the listview sample, but it was educational.

The samples are fine, I would guess that when they got cut-and-pasted into the tutorial documentation there were some errors.

Pretty impressed so far. 

0
Deyan
Telerik team
answered on 23 Feb 2017, 09:25 AM
Hello Matt,

Thanks for writing back.

Good to hear that you are progressing well - let us know in case of any questions.

The Source samples are automatically injected into the documentation from sample projects that we keep healthy, i.e. make sure they build correctly. This one somehow slipped under our radar but we're going to review it.

I will consider this thread closed for now and thanks for your feedback!

Regards,
Deyan
Telerik by Progress
Want to build beautiful Android apps as well? Check out UI for Android which enables the same set of scenarios, allowing you to create the same great app experience on both iOS and Android.
Tags
ListView
Asked by
Matt
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Matt
Top achievements
Rank 1
Share this question
or