Fix failing Sample

This commit is contained in:
Elvis Nuñez
2015-05-31 11:23:33 +02:00
parent b9597ff96b
commit 10a548999b

View File

@@ -18,7 +18,7 @@ class ViewController: UIViewController, ASTableViewDataSource, ASTableViewDelega
// MARK: UIViewController.
required override init() {
required override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
self.tableView = ASTableView()
super.init(nibName: nil, bundle: nil)
@@ -28,7 +28,7 @@ class ViewController: UIViewController, ASTableViewDataSource, ASTableViewDelega
}
required init(coder aDecoder: NSCoder) {
fatalError("storyboards are incompatible with truth and beauty")
fatalError("storyboards are incompatible with truth and beauty")
}
override func viewDidLoad() {
@@ -50,7 +50,7 @@ class ViewController: UIViewController, ASTableViewDataSource, ASTableViewDelega
func tableView(tableView: ASTableView!, nodeForRowAtIndexPath indexPath: NSIndexPath!) -> ASCellNode! {
let patter = NSString(format: "[%ld.%ld] says hello!", indexPath.section, indexPath.row)
let node = ASTextCellNode()
node.text = patter
node.text = patter as String
return node
}