1.导入第三方文件
2.在页面添加滚动条
//顶部LinkView
private lazy var pageTitleView: MFPageTitleView = {
let config = MFPageTitleViewConfig()
let pageTitleView = MFPageTitleView(frame: CGRect(x: 0, y: navHeight, width: SCREEN_WIDTH, height: 41), titles: ["推荐","快讯","深度","实时对话","行情分析"], config: config)
pageTitleView.pageTitleViewDelegate = self as? MFPageTitleViewDelegate
return pageTitleView
}()
// 别忘了最后加载在视图上:
self.view.addSubview(pageTitleView)