I’m implementing the Twitter Fabric iOS Show Timelines example as described in the Twitter documentation: https://dev.twitter.com/twitter-kit/ios/show-timelines
(Note: I’m using the Guest authentication sample code in my app delegate.)
However, I’m getting a build error:
Cannot override ‘init’ which has been marked unavailable
…on the “required init” line below.
I’ve seen others report this in the forums but the resolution is unclear to me. I appreciate any help you can provide this newbie. Thanks in advance.
import UIKit
import TwitterKit
class ViewController: TWTRTimelineViewController {
convenience init() {
let client = Twitter.sharedInstance().APIClient
let dataSource = TWTRUserTimelineDataSource(screenName: "fabric", APIClient: client)
self.init(dataSource: dataSource)
}
override required init(dataSource: TWTRTimelineDataSource) {
super.init(dataSource: dataSource)
}
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}