mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix failing Sample
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user