iOS 开发学习36 reveal使用

来源:互联网 发布:js如何验证手机号码 编辑:程序博客网 时间:2024/05/21 09:55

安装

打开:reveal

这里写图片描述

选择:

这里写图片描述

打开xcode项目,把reveal.framework拖到项目里

设置Other Linker Flags

这里写图片描述
如果在运行的时候,报下面错误:

Undefined symbols for architecture i386: “_deflate”, referenced
from:
-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o) “_deflateEnd”, referenced from:
-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o) “deflateInit2“, referenced from:
-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o) ld: symbol(s) not found for architecture
i386 clang: error: linker command failed with exit code 1 (use -v to
see invocation)

则把这里的-ObjC改为-lz
另外下一步要引入的框架加入一个:

libz.dylib

4.需要引入的框架:
这里写图片描述

使用

启动xcode的项目,
打开reveal,点击这里
这里写图片描述
运行结果截屏:
这里写图片描述

0 0