/XYSlideMenu

scrollView 联动

Primary LanguageSwiftApache License 2.0Apache-2.0

XYSlideMenu

  • scrollView 联动
  • OC 与 Swift 两个版本都有。 混合在一块

image

使用方式

  • Swift
let slideMenu = XYSlideMenu(frame: CGRect(x: 0, y: 64, width:view.frame.width, height: 40), titles: titles, childControllers: controllers)
slideMenu.indicatorType = .stretch
view.addSubview(slideMenu)
  • OC
XYSlideMenu *slideMenu = [[XYSlideMenu alloc] initWithFrame:CGRectMake(0,64, self.view.frame.size.width, 40) titles:titles childControllers: controllers];
slideMenu.indicatorType = XYSlideMenuIndicatorTypeStrech;
[self.view addSubview:slideMenu];