I’m getting the same error with swift. View controller created with scoreboard, Xcode 6.3
I also had a problem with
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
I get a compile error:
Cannot overwrite ‘init’ which has been marked unavailable
I commented out the routine so it would compile – don’t know if that effects things.
UPDATE: I tried the version here and it worked. But it is a fairly plain display – no headings, no way back to my calling VC, etc. So as a start I created a blank VC and did this…
let vc = UIStoryboard(name: "Main", bundle:nil).instantiateViewControllerWithIdentifier("TwitterViewController") as! TwitterViewController
self.presentViewController(vc, animated: true, completion: nil)
figuring I’d figure out how to pretty it up later. Well, it crashed the same way as the original one. So I guess you can only use this on a plain vanilla VC? Is there any way to customize things. As it is, it is not useful to me.
FURTHER UPDATE: The screen shot on the Timelines page shows a header with the handle and a back button. That is enough to work for me. How do I get that to display?
YET ANOTHER UPDATE; By using self.navigationController?.pushViewController instead of self.presentViewController I got my back button, Probably obvious to you all but I’m still learning the ins and outs of IOS 