Honey4Groceries / Honey4Groceries

MIT License
2 stars 0 forks source link

Link logic to custom cell with UIPickerView. #43

Open godwinpang opened 5 years ago

godwinpang commented 5 years ago

What this means is that your UIPickerView should actually do something.

Consider having a hashmap(dictionary) that maps keys to values. Your UITableViewCells can display the keys and then the values can be updated using the UIPickerView.

Next issue: TBD

godwinpang commented 5 years ago

Shopping List Screen: User should be able to add item to shopping list (via item screen) User should be able to update quantity of item in shopping list

Item Screen: User should be able to search for item in list of items(constant list [bread,eggs,ham]) User should be able to add item to shopping list(after clicking on add button, user will be taken back to shopping list)

godwinpang commented 5 years ago

create listmodel in listviewcontroller to store actual data itemviewcontroller should have list of items, whenever a cell(item) is selected in itemviewcontroller, the user should be taken back to the listviewcontroller. you can do this in the didSelectCellAt delegate method for the tableview in itemviewcontroller.

godwinpang commented 5 years ago
  1. create + button as UIBarButtonItem that links user to the itemviewcontroller