Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-6-cookbook.