2pods
The Advanced Table Views library is a set of modules that make handling table views more convenient. The different modules are split into cocoapods subspecs so that you can only include the modules you are interested in. Some of the modules (like HRSIndexPathMapping
) have advantages that might also be useful for other tasks than just table views, however they are mainly designed for the work with table views.
The section controller module deals with the problem of overloaded table view controllers. It separates the data model of a table view by its sections. Each section has its own controller that is responsible for providing the table view with the information it needs by implementing the necessary methods from UITableViewDelegate
and UITableViewDataSource
.
The index path mapping module is used for mapping index paths of every kind through a visibility / active state. This is mostly used to map index paths in the UITableView
or UICollectionView
context but can be used by every other logic that deals with index paths and needs to map between two sets of index paths based on various conditions.
In practice, this is used to collapse or hide a couple of rows or sections inside a table view based on your current model data.
License: Apache-2.0
HRSCustomErrorHandling is a small Framework that provides a base implementation for error handling in iOS applications. It deals with the problem to streamline the presentation of errors in various parts of an application as well as provide APIs to implement error specific recovery options the user of the application can choose from.
The presentation of an error is reduced to a single line of code that can be called from any view, view controller or any other class that inherits from UIResponder
:
[self presentError:error completionHandler:^(BOOL didRecover) {
if (didRecover) {
[self tryAgain];
}
}];
This is all the code you need to implement in your view controllers if an operation that returns an NSError
fails.
License: Apache 2