JZStatusBar 1.1.1

JZStatusBar 1.1.1

Jiahao Zhu 维护。



 
依赖
AFNetworking~> 4.0
JZBattery>= 0
 

  • 朱嘉皓

JZStatusBar

CI Status Version License Platform

示例

要运行示例项目,首先克隆存储库,并在 Example 目录中运行 pod install

要求

最低 iOS 目标:9.0

安装

JZStatusBar 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'JZStatusBar'

用法

JZStatusBar 可以通过基于框架的布局和自动布局进行布局。它也可以在 .xib 中使用,只需简单地放置一个 UIView 并将其类更改为 JZStatusBar

/* It is not necessary to be initialized with a frame */
let statusBar = JZStatusBar(/*frame: <any CGRect>*/)
view.addSubview(statusBar)

如果您想在 .xib 中使用 JZStatusBar,取消注释第 13 行以启用 @IBDesignable 属性,但是您可能需要将以下代码添加到您的 podfile 中以解决 "Image Not Found" 错误

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = [
      '$(FRAMEWORK_SEARCH_PATHS)'
    ]
  end
end

您可以在此处查找有关此问题更新的 issues#5334

作者

朱嘉皓,[email protected]

许可

JZStatusBar 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。