I can't push from one view controller to the next. I keep getting the errors Use of undeclared identifier 'DriverViewController'
DriverViewController *vC = [[DriverViewController alloc] init];
[self.navigationController pushViewController:vC animated:YES];
I created another swift file and this seemed to work just fine. Idk why I cant get the code above to do the exact same thing.
var dVC = DriverViewController()
self.navigationController?.pushViewController(dVC, animated: false)
In Objective-C, you need to import your header files, even if they are written in Swift. To do that, you need an umbrella header. Apple has covered this in the documentation. It will tell you how to exactly import Swift files in Objective-C, but simply put you need to import the umbrella header with this:
Documentation: https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_78