Code Monkey home page Code Monkey logo

drcellslidegesturerecognizer's People

Contributors

davdroman 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  avatar  avatar  avatar  avatar  avatar

drcellslidegesturerecognizer's Issues

Errors still exist in example project

I get all sorts of errors when I download it.
-QuartzCore needs to be included.
-line 345; No visible @interface for 'NSArray' declares the selector 'firstObject'
-line 399; No visible @interface for 'PDGesturedTableView' declares the selector 'setSeparatorInset'

These things are probably because I still have xcode 4. I just changed the firstObject to objectAtIndex:0 and then commented out the setSeparatorInset line (I can't find anything in the source about seperatorInsets) and it the code still seems to work. If you don't care about it working out the box for xcode 4 users I will understand I guess.

Disable cell dragging

Is it possible to disable the cell dragging feature? Also, maybe related, it appears that the (^shouldMoveCellFromIndexPathToIndexPathBlock)(NSIndexPath *, NSIndexPath *) block defined in the interface isn't implemented anywhere in the code.

No xcworkspace in demo project -> won't compile

Not a major issue but thought id mention it anyway - fantastic control so would be a shame if people passed it by!

When you download the demo project it comes with the two xcodeprojects (PDGesturedTableView and the cocoa pods project) but not the xcworkspace that ties them both together, so you get a missing libPods.a and a linker error when you try to compile.

Easily solved in my case by closing, running a pod install in the directory, having the cocoa pods CLI generator a workspace for me and then re-opening and building from that, but obviously if you included the workspace with the demo it would be that little bit easier!

Thanks for all your work on this control, loving it so far!

The future of PDGestureTableView

I've been thinking a lot about this library, and I've come to the decision of decoupling swiping, moving and background view features from each other in three different libraries: DRCellSlideGestureRecognizer, DRCellMoveGestureRecognizer and DRTableBackgroundView.

Not only will this allow for a better comprehension and improvement of the code, but for full independency when it comes to choosing the class of both the table and the cells to be used, given that UIGestureRecognizer will be used instead UITableView.

I'm planning on releasing DRCellSlideGestureRecognizer first, overwriting this repository, followed by DRCellMoveGestureRecognizer and DRTableBackgroundView later on.

Any thoughts about this?

didSelectRowAtIndexPath not being invoked

Hi,

I tried the PDGesturedTableView control and am impressed so far. The only issue I have is that the didSelectRowAtIndexPath isn't being invoked. I set the table view delegate to self. Is there a way around this? Perhaps a block method I can call to handle the tap cell event?

doesn't honor table view style

Line 137 PDGesturedTableView.m doesn't honor the UITableViewCellStyle that is passed in. Instead, it just uses the UITableViewCellStyleDefault default style

Issue with dragging cells to reorder

When the table view is populated with enough cells that it becomes scrollable, an odd behavior occurs when dragging to reorder these cells. If the table view is scrolled all the way to the top, everything works as expected. Depending on how far down you scroll the tableview, the drag to reorder cells animation will be offset by this same distance. I noticed this issue in both the sample project and when I added PDGestureTableView to my own project.

CocoaPods support

Hello,
I would like to help you write a CocoaPods podspec for this library, but need to make sure:

  1. As described in README file, you intended to release this library without any license like MIT (the most common one) but make it in the public domain?
  2. Any plan to add a git tag (e.g. 0.1.0) to a commit as the first official version release?
  3. Which iOS version is required for PDGesturedTableView? As I read the code, I guessed it should work on iOS > 6.

removeCell:duration:completion: failing from NSFetchedResultsController count

I'm managing my tableview through a NSFetchedResultsController datasource, so whenever I delete an object I'd like to reflect the views in the table, but for some reason, while I can remove the classes using deleteRowsAtIndexPaths:withRowAnimation: successfully, it fails using removeCell:duration:completion:. Here are the two codes I'm trying:

- (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject
       atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type
      newIndexPath:(NSIndexPath *)newIndexPath {

    PDGestureTableView *tableView = self.gesturedtableView;

    if(type == NSFetchedResultsChangeDelete) {

        TodoTableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

        // Standard way
        [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:animation];

        //GesturedTableView way
        [tableView removeCell:cell duration:0 completion:^{
            NSLog(@"Cell removed");
        }];

    }
}

While it doesn't crash the application, it leaves the space the cell there. It looks like I'm getting a mismatched row count between what's going on in the datasource and row:

2014-02-26 00:21:53.176 GoApp[16498:60b] *** Assertion failure in -[PDGestureTableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-2935.120.3/UITableView.m:1368
2014-02-26 00:21:53.178 GoApp[16498:60b] CoreData: error: Serious application error.  An exception was caught from the delegate of NSFetchedResultsController during a call to -controllerDidChangeContent:.  Invalid update: invalid number of rows in section 0.  The number of rows contained in an existing section after the update (7) must be equal to the number of rows contained in that section before the update (8), plus or minus the number of rows inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out). with userInfo (null)
2014-02-26 00:21:53.489 GoApp[16498:60b] Cell removed

Any clue on how to avoid this without losing the awesome sliding of the gestured cell?

Crash on swipe

For iOS 11 the app crashes due to a bad table view reference. There are at least three forks that result this issue.

Here and here and here are examples.

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.