Hi,
I am desperately trying to find some documentation regarding the usage of Mopub with TwitterKit in iOS. I have the latest TwitterKit (3.2.1) and the current documentation is less than useful-
I can’t get it to work with this example from the Twitter Dev documentation. I am on Xcode 9 and iOS 11.
// Swift
import TwitterKit
class UserTimelineViewController: TWTRTimelineViewController {
override func viewDidLoad() {
super.viewDidLoad()
let client = TWTRAPIClient()
let dataSource = TWTRUserTimelineDataSource(screenName: "twitterdev", apiClient: client)
let adConfig = TWTRMoPubAdConfiguration(adUnitID: "myAdUnitID", keywords: nil)
self.init(dataSource: dataSource, adConfiguration: adConfig)
}
}
I also tried the method explained here by @val but it the app keeps crashing at
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Is there a proper example of how to go about using TWTRMoPubAdConfiguration with TWTRTimelineViewController? Also, is TWTRMoPubAdConfiguration only usable with TWTRTimelineViewController? If I have my own custom TableView where I load tweets using TWTRTweetTableViewCell into the tableView, how would one go about initializing the dataSource with TWTRMoPubAdConfiguration in that case? or are there limitations to be able to do that currently?
Any help will be greatly appreciated.