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

Only having buttons on one side of the cell #5

Closed mitchellporter closed 9 years ago

mitchellporter commented 9 years ago

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.