You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ The crux of the problem is that while adding a delete button is super-easy, addi
11
11
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.
12
12
13
13
##The Biggest Changes
14
-
* Removed dependency on the storyboard
14
+
* Removed dependency on the storyboard (though you can still use one if you like)
15
15
* Made the `myContentView` public so the cell could be subclassed and recycled more easily.
16
16
* Beefed up delegate to handle an arbitrary number of buttons
17
17
* 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
25
25
26
26
* 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).
27
27
* 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.
28
30
29
31
##//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))
0 commit comments