Reveal UI analysis tools are simple to use and revealui analysis tools
Official website (30 days free trial): http://revealapp.com/
Purpose:
In iOS development, we sometimes hope to have a UI Debug tool similar to Web development (for example, Firebug), so that we can view the UI structure in real time, you can also change the position and size of a UIView in real time to view the effect. Here we found that such a powerful tool exists, and it is Reveal. (Although the current Xcode version has the "Capture View Hierarchy" function, it only supports the basic View UI structure, which is inferior to Reveal ).
This section describes the simple use of the Reveal UI analysis tool. For details about how to use it to analyze mobile apps, refer to the following article:
Http://wenku.baidu.com/link? Url = Response
Http://zhuanlan.zhihu.com/iOSRe/19646016
Procedure:
(1) After Reveal is installed, use Xcode to create a project named "RevealTest ".
(2) Add the Reveal framework for the RevealTest project. Open the Help menu of the Reveal tool, find the path corresponding to the Reveal framework, and drag it directly to our project, A dialog box is displayed. Check Copy items if needed 」
(3) add the "Any iOS Simulator SDK" item for "Other Linker Flags" under "Build Settings" of the "RevealTest" project, and the corresponding value is "-ObjC 」
(4) when running the project, an error is reported. The error message is as follows. In this case, we need to introduce the "libz. dylib" library and re-run the project.
Undefined symbols for architecture x86_64:
"_ 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)
(5) When the project runs successfully, the system prompts "Reveal Server started (Protocol Version 18).", you can start the Reveal tool to play.
(6) Open the Reveal tool, select our "RevealTest" project in the upper left corner, and then you can view the UI structure in the project. For more powerful functions, please refer to more network information for further exploration