Skip to content

Commit 1fdbe07

Browse files
Add notes to the README about storyboard stuff.
1 parent f6e5be2 commit 1fdbe07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The crux of the problem is that while adding a delete button is super-easy, addi
1111
I've refactored the code that was included in the tutorial, which is is more meant as an exercise in helping n00bs dive into figuring out how Apple's code works under the hood, into this library, which I'm hoping will be helpful for anyone dealing with this in production code.
1212

1313
##The Biggest Changes
14-
* Removed dependency on the storyboard
14+
* Removed dependency on the storyboard (though you can still use one if you like)
1515
* Made the `myContentView` public so the cell could be subclassed and recycled more easily.
1616
* Beefed up delegate to handle an arbitrary number of buttons
1717
* Added datasource to allow tons of user-configurable options
@@ -25,8 +25,12 @@ I've refactored the code that was included in the tutorial, which is is more mea
2525

2626
* If you're using an accessory view via `accessoryType`, that view will automatically be removed and replaced when the cell is opened and closed (respectively).
2727
* If you're using a custom background color for your `myContentView` along with an accessory, remember to set that same color as the backgorund color for the cell itself, or the accessory's going to have a different background color.
28+
* If you're using a cell from a storyboard or a `.xib`, you have to add a `myContentView` view, and hook up the `NSLayoutConstraint` outlets to the left and right constraints. See the sample project for an example of how to set this up.
29+
* If you're using a cell from a storyboard or a `.xib`, make sure you're sending any calls to the superclass during setup which need `myContentView` to not be `nil` through `awakeFromNib` instead of `initWithCoder:`, since the `IBOutlet` won't be hooked up until `awakeFromNib` has fired.
2830

2931
##//TODOs
32+
* Support for swiping in both directions ([issue](https://github.com/designatednerd/DNSSwipeableTableCell/issues/7))
33+
* Support for iOS 8 style cell actions ([issue](https://github.com/designatednerd/DNSSwipeableTableCell/issues/15))
3034
* ??? - File an issue!
3135

3236
##Additional Contributors

0 commit comments

Comments
 (0)