Coder Social home page Coder Social logo

dacontextmenutableviewcontroller's Introduction

DAContextMenuTableViewController

A UITableViewController subclass with "more" accessory view, that looks and behaves similarly to the one in the native mail app.

Alt text

I know there is a willTransitionToState: method where I could create a custom accessoryView with "More" button. But theres is no width for Delete button (which may vary for different languages) and no animation duration, so custom editing view seemed a better sollution for me.

Installation

CocoaPods

Install CocoaPods if necessary:

$ [sudo] gem install cocoapods
$ pod setup

Change to the directory of your Xcode project:

$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile

Edit your Podfile and add DAContextMenuTableViewController:

platform :ios, '6.0'
pod 'DAContextMenuTableViewController'

Install into your Xcode project:

$ pod install

From now on open your project in Xcode from the .xcworkspace file (instead of the usual project file)

Manual Install

Just drag and drop DAContextMenuTableViewController folder into your project.

TODO

  • bounce animation
  • better handling of rotation animation
  • iOS7-like look for iOS 6 context menu action sheet

dacontextmenutableviewcontroller's People

Contributors

daria-kopaliani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dacontextmenutableviewcontroller's Issues

Panning instead of swiping

Hi! Interesting project, it would be nice to have the ability to specify a panning gesture, instead of plain swipe. What do you think?

Pods version out of sync with demo

Pods version 1.0.2 is missing the DAContextMenuCellDataSource protocol (among other things used by the demo). Could you kindly push a new version? Thanks!

Odd behavior with a tableviewcellaccessory

When a cell has a default accessory, in this case a checkmark, the cell slides to reveal the buttons as normal, but the checkmark stays in position over the delete button.

After the cell returns to its default state, it no longer allows sliding at all.

I am using iOS 7 Beta 5. I do not know if this issue is present in iOS 6.

Using DAContextMenuTableViewController On UITableView In A UIViewController?

Hi.

In the case where I have a UITableView added to a UIViewController and I want to use DAContextMenuTableViewController to add buttons to the cells on that UITableView will it work?

Currently when I try to do this I get errors on in setCustomEditing method at line self.tableView.scrollEnabled where it errors saying "Property 'tableView' not found on object of type 'DAContextMnuTableViewController'.

Presumably this means that it only works on a UITableViewController and not on UITableView in a UIViewController.

Thanks for any help on this.

Already Swiped Cells show no buttons on return

screen shot 2013-10-23 at 20 10 01

To replicate issue,

  • swipe to open context menu on first cell, close it with no action
  • swipe to open context menu on second cell, close it with no action
  • swipe to open context menu on first cell, no buttons

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.