Wrong cell format/add new ingredients cell not visible
Bernd Rabe
8 posts
|
Hi Bill, 1. I noticed that when you have added new recipies or ingredients and the view controller updates the view you see lightgrey cells and in the ingredients view also the disclosure indicator. It’s quite easy to make a workaround in cellForRowAtIndexPath (just set colour and accessory type accordingly) but have you any idea where it comes from. 2. If you have a lot of ingredients you end up having the new ingredients cells is displayed outside the visible area. How can I correct this? Thanks a lot Bernd |
Bill Dudney
372 posts
|
Hi Bernd, 1. – not sure what you mean by ‘it’ in the final sentence. 2. Do you want the newly added cell to be visible after its added? If so you just need to get the table view to scroll to the new cell with ‘scrollToRowAtIndexPath:atScrollPosition:animated:’ Good luck! |
Bernd Rabe
8 posts
|
Hi Bill, 1. I walked through the app testing different things (add/delete recipes/ingredients etc.) and noticed that once I’ve gone through an edit phase for the ingredients (independant if I added a new ingredient or not) and I leave that recipe, go to another one and I come back I can see that one cell is painted like the “New Ingredient” cell (disclosure button, lightgrey colour)?! 2. My question here was to have the “Add New Ingredients” cell always show up in the visible area of the screen e.g. if you more than 9 ingredients the new ingredient cell is outside the view. Bernd |
Bernd Rabe
8 posts
|
Hi Bill, I’ve added [tv scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES]; and it works fine. Tanks |
4 posts, 2 voices
