ZHFlexDotView
示例
要运行示例项目,请先克隆仓库,然后从 Example 目录运行 pod install
。
要求
安装
ZHFlexDotView 可通过 CocoaPods 获取。要安装它,只需将以下行添加到 Podfile 中
source 'https://github.com/zhouzhuhao/ZHPodSpec.git'
pod 'ZHFlexDotView'
使用方法
#pragma mark -DEBUG模式下才显示Flex,如果需要打包后的ipa也出现Flex,就需要在scheme中配置Archive时为debug
#if DEBUG
NSEnumerator *frontToBackWindows = [[[UIApplication sharedApplication] windows] reverseObjectEnumerator];
for (UIWindow *win in frontToBackWindows) {
if (win.windowLevel == UIWindowLevelNormal) {
self.zhView = [[ZHFlexDotView alloc] initWithFrame:CGRectMake(0, 200, 60, 60)];
[win addSubview:self.zhView];
break;
}
}
#endif
作者
许可协议
ZHFlexDotView 允许在 MIT 许可下使用。更多信息请查看 LICENSE 文件。