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

minor improvements #13

Open rubnov opened 9 years ago

rubnov commented 9 years ago

When setting up a table view cell in a storyboard or xib file, initWithStyle: isn't called and therefore initialize is missed. I've added awakeFromNib: to invoke initialize as an alternative. In addition, to suppress warnings about required JASwipeCellDelegate methods, I've declared all delegate methods optional. This is a suggestion, of-course. I didn't see a need to make the methods required.