Latest 2.0.1
Homepage https://github.com/gloubibou/HHPanningTableViewCell
License BSD Copyright (c) 2012-2013, Pierre Bernard & Houdah Software s.à r.l.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Platforms ios 6.1, requires ARC
Frameworks QuartzCore

HHPanningTableViewCell – Swipe to reveal

HHPanningTableViewCell is a UITableViewCell implementing "swipe to reveal" a drawer view. Such a view typically holds action buttons applying to the current row.

This behavior is seen in a number of iOS applications. To my knowledge the idea was pioneered by Loren Brichter for Tweetie (aka Twitter for iPhone).

The HHPanningTableViewCell implementation was written for the ACTPrinter 4.0 application.
The code presented here is identical to the one used in the shipped product.

Features

  • Swipe to reveal implemented using gesture recognizer
  • Live tracking of swipe to progressively reveal drawer
  • Options to allow for swiping to left or right only
  • Bounce animation when hiding drawer
  • Foreground view casts shadow on drawer when moved aside

Requirements

  • iOS 6.1 or later. Including 7.0 (Tag 1.0.0 did support iOS 5.1)
  • ARC memory management

Usage

  • Copy the following to your project:
    • HHDirectionPanGestureRecognizer.h
    • HHDirectionPanGestureRecognizer.m
    • HHInnerShadowView.h
    • HHInnerShadowView.m
    • HHPanningTableViewCell.h
    • HHPanningTableViewCell.m
  • Use HHPanningTableViewCell instances for your table cells
  • Set a panning direction mask on the cells
  • Provide a drawer view for the cells
  • Optionally, implement the HHPanningTableViewCellDelegate method to trigger your own custom action.
  • Refer to the demo application for details

License

This code is made available under the terms of the BSD license as included in the source files.

Latest podspec

{
    "name": "HHPanningTableViewCell",
    "version": "2.0.1",
    "summary": "HHPanningTableViewCell - Swipe to reveal.",
    "description": "                   HHPanningTableViewCell is a UITableViewCell implementing "swipe to reveal" a drawer view. Such a view typically holds action buttons applying to the current row.nnThis behavior is seen in a number of iOS applications. To my knowledge the idea was pioneered by Loren Brichter for Tweetie (aka Twitter for iPhone).nnThe HHPanningTableViewCell implementation was written for the [ACTPrinter 4.0 application](https://itunes.apple.com/app/actprinter-virtual-printer/id296083171?mt=8).n",
    "homepage": "https://github.com/gloubibou/HHPanningTableViewCell",
    "license": {
        "type": "BSD",
        "text": " Copyright (c) 2012-2013, Pierre Bernard & Houdah Software s.u00e0 r.l.n All rights reserved.nn Redistribution and use in source and binary forms, with or withoutn modification, are permitted provided that the following conditions are met:n     * Redistributions of source code must retain the above copyrightn       notice, this list of conditions and the following disclaimer.n     * Redistributions in binary form must reproduce the above copyrightn       notice, this list of conditions and the following disclaimer in then       documentation and/or other materials provided with the distribution.n     * Neither the name of the  nor then       names of its contributors may be used to endorse or promote productsn       derived from this software without specific prior written permission.nn THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ANDn ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDn WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREn DISCLAIMED. IN NO EVENT SHALL  BE LIABLE FOR ANYn DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGESn (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED ANDn ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORTn (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISn SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.n"
    },
    "authors": "Pierre Bernard",
    "source": {
        "git": "https://github.com/gloubibou/HHPanningTableViewCell.git",
        "tag": "v2.0.1"
    },
    "platforms": {
        "ios": "6.1"
    },
    "source_files": [
        "Classes",
        "HHPanningTableViewCell/**/*.{h,m}"
    ],
    "public_header_files": "HHPanningTableViewCell/**/*.h",
    "frameworks": "QuartzCore",
    "requires_arc": true
}

Pin It on Pinterest

Share This