Compilation of reusable classes, categories and snippets for use in Objective-C projects. This list may grow or shrink over time as I find new, interesting implementations of functionality I find myself frequently using.
-
UITableView+Extended.h/m
A small category that provides a wrapper method that helps ensure
beginUpdatesis always followed byendUpdates, taking a block as a parameter to perform your batch updates on aUITableView. Inspired by theUICollectionViewperformBatchUpdates:completion: -
UITableViewCell+Extended.h/m
A category on
UITableViewCellthat adds simple functionality for a covenience method that is helpful when register nibs withUITableViews.E.g.:
[self.tableView registerNib:[MyTableViewCell associatedNib] forCellReuseIdentifier:NSStringFromClass([]MyTableViewCell class])]; -
NSObject+Swizzling.h/m
A useful method that will swizzle the implementations of two methods at runtime. Supports instance methods and class methods.
For application-wide support, import Reuse.h into your project's .pch file.
Tim Searle
Reuse-Objc is available under the MIT license. See the LICENSE file for more info.