Beginning Collection Views

Oct 24 2017 · Swift 4, iOS 11, Xcode 9

Part 1: Part 1: The Basics

10. Cleaning up the UI

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 09. Challenge: Deleting Cells Next episode: 11. Conclusion

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 10. Cleaning up the UI

There's a bug in this project where not all cells are deselected if you leave editing mode with cells selected. The final project for this part of the course has been updated with a fix. To implement it yourself, add the following to the 'setEditing' method, just after setting allowsMultipleSelection:

    collectionView.indexPathsForSelectedItems?.forEach {
      collectionView.deselectItem(at: $0, animated: false)
    }