You should check out objectivec2swift.net
Converting it makes this:
import "SherginNavigationTableViewController.h"
import "SherginScrollableNavigationBar.h"
class SherginNavigationTableViewController {
func initWithStyle(style: UITableViewStyle) -> AnyObject {
self = super(style: style)
if self {
// Custom initialization
}
return self
}
func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
// SherginScrollableNavigationBar
(self.navigationController.navigationBar as
SherginScrollableNavigationBar).scrollView = self.tableView
self.title = "ScrollableNavigationBar"
}
func viewDidDisappear(animated: Bool) {
// SherginScrollableNavigationBar
(self.navigationController.navigationBar as
SherginScrollableNavigationBar).scrollView = self.tableView
super.viewDidDisappear(animated)
}
}
10
solved convert from obj-c to swift