CombinedScrollView
几行代码快速生成联动的Scrollview视图(菜单+内容视图)
Installation
- CocoaPods:
pod 'CombinedScrollView', '~> 1.0.3'
- Maually:
Drag the folder CombinedScrollView to your Xcode project and then use it!
Usage
let vc = CombinedScrollView(naviTitles: ["test1", "test2", "test3", "test4"], vcNames: ["test1", "test2", "test3", "test4"], sbNames: nil, frame: CGRect(x: 0, y: 0, width: view.bounds.width, height: view.bounds.height))
vc.showIndicatorLine = true
self.addChildViewController(vc)
view.addSubview(vc.view)
or
let vc = CombinedScrollView(naviTitles: ["sb1", "sb2", "sb3", "sb4"], vcNames: nil, sbNames: ["sb1", "sb2", "sb3", "sb4"], frame: CGRect(x: 0, y: 0, width: view.bounds.width, height: view.bounds.height))
vc.showIndicatorLine = true
self.addChildViewController(vc)
view.addSubview(vc.view)