Reveal UI analysis tools are simple to use and revealui analysis tools

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.