Closed jastill closed 4 years ago
Now I am on mission3 i see what was missed in cellForRowAtIndexPath and numberOfRowsInSection:
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return isSearching() ? searchedProducts.count : products.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let product = isSearching() ? searchedProducts[indexPath.row] : products[indexPath.row]
Can we close this issue?
Hi @jastill ,
Thanks for reaching out.
Would it make it easier for you if I would change the order or add a statement saying that additional implementation is needed to make it fully functional?
Thanks, Kevin
Tutorial URL: https://developers.sap.com/tutorials/fiori-ios-scpms-starter-mission-03.html
Please specify the step you are referring to Step 4
The searchedProducts are not bound to the table data delegate. As such the search completes, but is never reflected in the UI.
Maybe I missed something, but these are the changes I made to get it working:
I replaced products with searchedProducts in the following
and