Permalink
Browse files

Add README and license

  • Loading branch information...
1 parent 25e6a9c commit 6252a800e9ff2bfb99a9e623ed89db5e0167cff4 Luke Redpath committed May 26, 2011
Showing with 33 additions and 0 deletions.
  1. +20 −0 LICENSE
  2. +13 −0 README.md
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Luke Redpath
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,13 @@
+# LRSlidingTableViewCell - swipe to reveal implementation
+
+This is a simple implementation of the "swipe to reveal" behaviour found in Twitter and Spotify for iPhone.
+
+The basic premise is that by swiping over a table view cell, the content view is shifted to reveal a background view (which the developer should provide themselves).
+
+When the table view is scrolled, any swiped cell will close. A subtle "bounce" effect is added when the content view slides back in.
+
+The LRSlidingTableViewCell class should be re-usable as-is; you just need to provide a background view and a delegate for the cell (typically the table view controller).
+
+See the provided example controller for an example of how to handle scrolling correctly.
+
+All code is licensed under the MIT license. Credit to whoever came up with this originally - as far as I know it's Twitter for iPhone (formerly Tweetie) but I don't know this for certain.

0 comments on commit 6252a80

Please sign in to comment.