Code Monkey home page Code Monkey logo

Comments (3)

erica avatar erica commented on July 29, 2024

I just tested my code -- and it's not producing the behavior you're describing. As far as I can tell, there's no swiping enabled.

I tested on device as well as in the simulator.

-- E

On Jan 24, 2013, at 7:22 PM, atimesastudios [email protected] wrote:

Core iOS6 Developer's Cookbook pg 392. Downloaded the latest code from github. When you select a cell the drawer appears. However, if you perform a swipe gesture on the action drawer as if you wanted to delete the drawer you see the delete button in the drawer cell. If you select the delete button the code crashes in libobjc.A.dylib with 'objc_exception_throw' on the com.apple.main-thread (serial).

How can the code be modified to prevent the appearance of the delete button in the action cell? I'd like to still allow the swipe gestures.


Reply to this email directly or view it on GitHub.

from ios-6-cookbook.

 avatar commented on July 29, 2024

Erica,
I've got a canEditRowAtIndexPath: that was allowing edits. This and other tableView methods will need to be implemented in a way that handles the drawer cell. When I return NO for all cells I get the behavior you are describing - no swiping enabled. I'll leave it that way for now while I figure out the changes needed and do some testing.

from ios-6-cookbook.

 avatar commented on July 29, 2024

Erica,
Perhaps one simple way to do this is to allow edits and moves only if a drawer cell is not displayed. In which case returning !(self.actionRowPath) from canMoveRowAtIndexPath: and canEditRowAtIndexPath: may be all that is needed.

from ios-6-cookbook.

Related Issues (5)

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.