LGPlaceholderView 1.0.2

LGPlaceholderView 1.0.2

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2015年11月

Grigory Lutkov 维护。



  • Grigory Lutkov

视图覆盖了视图控制器内的所有内容,并在需要隐藏内容时显示一些警告文本、进度条或其他视图。例如,当你推送视图控制器并希望从服务器加载数据时,你可以在 LGPlaceholderView 显示活动指示器的同时准备一切。

预览

安装

带有源代码

下载仓库 https://github.com/Friend-LGA/LGPlaceholderView/archive/master.zip,然后添加 LGPlaceholderView 目录 到你的项目中。

Podfile

platform :ios, '6.0'
pod 'LGPlaceholderView', '~> 1.0'

Cartfile

github "Friend-LGA/LGPlaceholderView" ~> 1.0

用法

在需要使用库的源文件中导入头文件

#import "LGPlaceholderView.h"

初始化

初始化有多种方法

- (instancetype)initWithView:(UIView *)view; // parent view, that content you need to hide

更多初始化方法可以在 LGPlaceholderView.h 中找到

通知

这里也有一些可以添加到 NSNotificationsCenter 的通知

kLGPlaceholderViewWillShowNotification;
kLGPlaceholderViewWillDismissNotification;
kLGPlaceholderViewDidShowNotification;
kLGPlaceholderViewDidDismissNotification;

更多

有关更多详细信息,请尝试 Xcode 中的 示例项目 并查看 LGPlaceholderView.h

许可证

LGPlaceholderView 在 MIT 许可证下发布。查看 LICENSE 以获取详细信息。