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-5
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The crux of the problem is that while adding a delete button is super-easy, addi
10
10
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
-
##The Biggest Changes
13
+
##The Biggest Changes
14
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
@@ -21,21 +21,21 @@ I've refactored the code that was included in the tutorial, which is is more mea
21
21
* Added a sample subclass.
22
22
* Added a bunch of photos of my cat, because the internet loves cats.
23
23
24
-
#Notes on Usage
24
+
#Notes on Usage
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 background color for the cell itself, or the accessory's going to have a different background color.
28
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
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.
30
30
31
-
##//TODOs
31
+
##//TODOs
32
32
* Support for swiping in both directions ([issue](https://github.com/designatednerd/DNSSwipeableTableCell/issues/7))
33
33
* Support for iOS 8 style cell actions ([issue](https://github.com/designatednerd/DNSSwipeableTableCell/issues/15))
34
34
* ??? - File an issue!
35
35
36
-
##Additional Contributors
36
+
##Additional Contributors
37
37
*[Mark Flowers](https://github.com/markflowers) - Improved fixes for tableview slop, removed index path hack, defaults for numerous previously required methods, and better delegate methods.
38
38
39
39
40
-
##Photos
40
+
##Photos
41
41
All photos Copyright Ellen Shapiro. If you want to see more photos of my jerkface cat, Chaplin, follow me on [Instagram](http://instagram.com/loudguitars).
0 commit comments