CombinedScrollView 1.0.4

CombinedScrollView 1.0.4

keisme 维护。



  • keisme

CombinedScrollView

少量代码即可快速生成联动的Scrollview视图(菜单+内容视图)

安装

  • CocoaPods
    pod 'CombinedScrollView', '~> 1.0.3'
  • 手动
    CombinedScrollView文件夹拖放到您的Xcode项目中,然后使用它!CombinedScrollView

使用

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)

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)