OYStretchyHeader 1.0

OYStretchyHeader 1.0

Osman YILDIRIM 维护。



  • osmanyildirim

OYStretchyHeader

安装

CocoaPods

只需将 pod 'OYStretchyHeader' 添加到您的 Podfile,然后运行 pod installpod update

在您想要使用 OYStretchyHeader 的任何文件中,不要忘记使用 import OYStretchyHeader 导入框架。

手动

下载并将 OYStretchyHeader.swift 拖放到您的项目中。

用法

   OYStretchyHeader().init(viewController: self,
                                      parentView: scrollView,
                                      customHeader: nil,
                                      image: UIImage(named: "sample"),
                                      height: 200,
                                      type: .afterShowNavigationBar)

您可以选择其中一种类型

public enum HeaderType {
  case afterShowNavigationBar
  case alwaysHideNavigationBar
  case alwaysShowNavigationBar
}

许可协议

OYStretchyHeader 在 MIT 许可协议下发布。更多信息请参阅 LICENSE