Philipe Fatio

4pods

PHFArrayComparator

This little class is intended to be used with UITableView and other collection like views. It's purpose is to facilitate the smooth update of displayed data. It does that by telling you what is gone, what moved, and what is new in the data. These can then be directly translated to table view methods that insert, move, and delete rows or sections.

License: MIT

  • Objective C

PHFComposeBarView

The compose bar from the messages application on iOS is often replicated in applications, mostly with slightly different visuals and behavior. This class is an exact reconstruction of the compose bar and behaves exactly like it. It is configurable in terms of maximium height the input view can grow. By specifying a maximum text length a counter is shown, similar to composing an SMS. You can also specify an image for the utility button on the left of the input which causes that button to become visible. Further, the color of the send button can be customized.

License: MIT

  • Objective C

PHFDelegateChain

This NSProxy subclass allows you to chain delegate methods easily. Create an instance of PHFDelegateChain, tell it which objects it should forward to and set it as the delegate of an object. Whenever a method is called on the chain, it will forward it to the registered objects.

License: MIT

  • Objective C

PHFRefreshControl

  • No need to pull and release. Just pull far enough and a refresh will trigger. You'll see much more of these soon.
  • Adjust tint color of arrow.
  • No support for last refresh date.
  • Built on top of UIControl. When triggered it sends a UIControlEventValueChanged event to targets.
  • View has a magical height of 44 points.
  • iOS 5 and up (yeah, that's a feature).

License: MIT

  • Objective C