ZHFlexDotView 1.0.3

ZHFlexDotView 1.0.3

‘johnzhuhaochow’ 维护。



  • 作者:
  • zhouzhuhao

ZHFlexDotView

CI Status Version License Platform

示例

要运行示例项目,请先克隆仓库,然后从 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

Release 模式下,移除 Flex 代码 image

作者

[email protected]

许可协议

ZHFlexDotView 允许在 MIT 许可下使用。更多信息请查看 LICENSE 文件。