Skip to content

Commit

Permalink
Added icon + fixed link in README
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Jan 19, 2016
1 parent 13e8a85 commit 8c401dc
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"idiom" : "iphone",
"filename" : "AppIcon-120.png",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"idiom" : "iphone",
"filename" : "AppIcon-180.png",
"scale" : "3x"
},
{
Expand All @@ -51,18 +53,21 @@
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"idiom" : "ipad",
"filename" : "AppIcon-76.png",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"idiom" : "ipad",
"filename" : "AppIcon-152.png",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "AppIcon-167.png",
"scale" : "2x"
}
],
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Reusable

![Reusable](Example/ReusableDemo/Assets.xcassets/AppIcon.appiconset/AppIcon-167.png)

A Swift mixin for `UITableViewCells` and `UICollectionViewCells`.

For more information on how this works, see [my blog post about this technique](git@github.com:AliSoftware/Reusable.git).
For more information on how this works, see [my blog post about this technique](http://alisoftware.github.io/swift/generics/2016/01/06/generic-tableviewcells/).

# Example usage

Expand All @@ -25,12 +27,12 @@ class NibBasedCustomCell: UITableViewCell, NibReusable {

Then in your `UIViewControllerDataSource`:

```
```swift
class MyTableViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
tableView.registerReusableCell(CodeBasedCustomCell.self) // This will register using the class without using a UINib
tableView.registerReusableCell(NibBasedCustomCell.self) // This will register using NibBasedCustomCell.xib
tableView.registerReusableCell(CodeBasedCustomCell) // This will register using the class without using a UINib
tableView.registerReusableCell(NibBasedCustomCell) // This will register using NibBasedCustomCell.xib
}

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
Expand Down

0 comments on commit 8c401dc

Please sign in to comment.