Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
shaps-test committed Apr 5, 2014
1 parent 22f318b commit f220260
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Purpose
--------------

SPXMasking is category on CALayer that allows you to specify different a corner radius for each corner of a CALayer.
I recenty needed to build the iMessage style pull-to-reveal timestamps feature for a personal project and decided to open source the category. :)


Expand Down Expand Up @@ -32,12 +31,14 @@ Usage
Using this component is almost completely drop in, just follow a few simple steps:

1. #import "UITableView+SPXRevealAdditions.h"
2. [self.tableView enableRevealableViewForDirection:SPXRevealableViewGestureDirectionLeft]; (e.g. in viewDidLoad)
2. [self.tableView enableRevealableViewForDirection:SPXRevealableViewGestureDirectionLeft];
3. cell.revealableView = timestampView;
You should call enable at a fairly early stage in your UITableView's lifecycle, ideally in `-viewDidLoad`

To gain the benefits of reusable cells, I recommended setting the revealableView in your `-awakeFromNib` cell method, but you could declare it directly in your `-cellForRowAtIndexPath` method as is shown in the included demo.

That's it! It will automatically handle inserting the view into the cells, you have a nice property on each cell to make it simple to update and all gesture handling is done automatically for you just by including the class.


Feel free to use in any way you see fit. Please try and reference me somewhere in your app if you use this in a production app and maybe even tell me about it via Twitter @shaps ;)
Feel free to use in any way you see fit. Please try and reference me somewhere in your app if you use this in a production app and maybe even tell me about it via Twitter [@shaps](http://twitter.com/shaps) ;)

0 comments on commit f220260

Please sign in to comment.