i am working on app the need to use the UItableview , but i can't get the data from the collection to be displayed on the table view i need some example or the best way to count the items and display the list of names into tableview .
Best Answer
E
Edward LoPinto
said
almost 5 years ago
You'd probably do it the same way you populate a table view from any data source:
1. Perform your Kinvey query, probably in the view controller's viewDidLoad method.
2. In the completion handler, assign the results of the query to a property of your UITableViewController subclass.
3. Call `tableView.reloadData` to refresh. Remember to call `reloadData` in a `dispatch_async` block, because UI updates always have to be done on the main queue. For example:
You'd probably do it the same way you populate a table view from any data source:
1. Perform your Kinvey query, probably in the view controller's viewDidLoad method.
2. In the completion handler, assign the results of the query to a property of your UITableViewController subclass.
3. Call `tableView.reloadData` to refresh. Remember to call `reloadData` in a `dispatch_async` block, because UI updates always have to be done on the main queue. For example:
4. Implement `tableView:cellForRowAtIndexPath:IndexPath` to customize the cells.
1 person likes this
P
Pranav J
said
over 4 years ago
Rami,
Did Edward's suggestion help you? Do you have any more queries?
Thanks, Pranav Kinvey Support
r
rami mokhtar
said
over 4 years ago
Pranav,
in this issue its fixed already thanks , but unfortunately the other main issue there is no reply from you .
and i feel i am going to give up with your support , if some one need to help me please check the other ticket i have about the download images in array and why the image did not downloaded when i upload the image by the drag and drop .
rami mokhtar
i am working on app the need to use the UItableview , but i can't get the data from the collection to be displayed on the table view i need some example or the best way to count the items and display the list of names into tableview .
You'd probably do it the same way you populate a table view from any data source:
1. Perform your Kinvey query, probably in the view controller's viewDidLoad method.
2. In the completion handler, assign the results of the query to a property of your UITableViewController subclass.
3. Call `tableView.reloadData` to refresh. Remember to call `reloadData` in a `dispatch_async` block, because UI updates always have to be done on the main queue. For example:
4. Implement `tableView:cellForRowAtIndexPath:IndexPath` to customize the cells.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstEdward LoPinto
You'd probably do it the same way you populate a table view from any data source:
1. Perform your Kinvey query, probably in the view controller's viewDidLoad method.
2. In the completion handler, assign the results of the query to a property of your UITableViewController subclass.
3. Call `tableView.reloadData` to refresh. Remember to call `reloadData` in a `dispatch_async` block, because UI updates always have to be done on the main queue. For example:
4. Implement `tableView:cellForRowAtIndexPath:IndexPath` to customize the cells.
1 person likes this
Pranav J
Did Edward's suggestion help you? Do you have any more queries?
Thanks,
Pranav
Kinvey Support
rami mokhtar
Pranav ,
in this issue its fixed already thanks , but unfortunately the other main issue there is no reply from you .
and i feel i am going to give up with your support , if some one need to help me please check the other ticket i have about the download images in array and why the image did not downloaded when i upload the image by the drag and drop .
Thanks ,
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics