joseria / JASwipeCell

iOS 8 Mail Inspired. A UITableViewCell subclass that displays customizable left or right buttons that are revealed as the user swipes the cell in either direction. The edge-most buttons will pin to the container view and will execute an event similar to how the delete/archive button work in IOS 8 mail.
MIT License
367 stars 53 forks source link

use with only one side #3

Closed connered closed 9 years ago

connered commented 9 years ago

empty right menu - get error

joseria commented 9 years ago

Fixed issue. You should be able to use it with action buttons on both sides, one side only, or none.

mitchellporter commented 9 years ago

Has this been solved? I'm having trouble only using buttons on the right side.

Right now the user can still swipe right on the cell, and then an exception is thrown, because it's expecting an array of buttons for the left side:

'NSRangeException', reason: '*\ -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'

How can I disable buttons for the left side, and only have buttons on the right side?

mitchellporter commented 9 years ago

I was experiencing this issue because I used the version currently listed at http://cocoapods.org/

If you use the most recent version, which is only available on GitHub, then you will no longer experience this issue when trying to use buttons on only one side of the cell.