Latest reveal installation and use, you can view any appui layout.

Source: Internet
Author: User

Recently looking at the reverse of iOS data, found the debugging UI tool--reveal, found that this is also useful in practical development. When we need to refer to other app interface layouts, use this tool to view his layout. But this requires a mobile phone jailbreak. If there is no jailbreak, you can only debug their own app, there are students say, if it is their own app, then I have enough to bring, in fact, reveal has a more useful than the function of Xcode. Reveal provides the ability to instantly change layout properties, i.e. I don't need to modify the code and then restart the app to view it. Only need to modify the value directly on the right side, enter, you can see the relevant layout, similar to the front end through the browser to modify the interface, personal feel very convenient.

Main steps for installing and using reveal:
    1. Install the reveal software.
    2. Import Revealserver.framework to the project's root directory. (Remember to remove before packaging, revealserver.framework in the Reveal application Help-->show Reveal Library in the Finder-->ios library, if it is to debug their own app, That's all you have to do.)
    3. Move Libreveal.dylib and Libreveal.plist to the directory/library/mobilesubstrate/dynamiclibraries of your iOS device.
1. Install the Reveal software:

78843023 The blogger offered a cracked version. There are several other ways to use reveal, which is the simplest way to record the use.

2. Import Revealserver.framework to the project's root directory:

Revealserver.framework is available in the Help-->show Reveal Library in Finder-->ios Library of Reveal applications. After fetching, drag into the project's root directory. Then add the revealserver.framework in the targets.

  

After this step, run the project and open the reveal to see the corresponding project.

Simply select one to see the corresponding hierarchy. In this step, you can debug your app.

3. View the layout of any other app:

This step needs to jailbreak the mobile phone, jailbreak a lot of methods, pp assistant, ACE Assistant can. After jailbreak, install three important plugins in Cydia: Cydia substrate, OpenSSH, Reveal Loader.

After installing the corresponding plug-in, start the preparation work:

      1. Move Libreveal.dylib and Libreveal.plist to the directory/library/mobilesubstrate/dynamiclibraries of your iOS device. The new reveal has no libreveal.dylib. To rename the Revealserver file in Revealserver.framework to Libreveal.dylib, use the command (change the IP address to the IP address of the iOS device, and keep it in a LAN):
SCP /applications/reveal.app/contents/sharedsupport/ios-libraries/revealserver.framework/revealserver [ Email protected]192.168. 2.6:/library/mobilesubstrate/dynamiclibraries/libreveal.dylib

The default password you need to enter is: Apline

Here I have tried for a while OpenSSH can successfully connect the mobile phone. was used. "SSH [email protected]". After entering the password Apline, successfully connected to the iphone's machine, and then use the above command has been said to find the file directory, because the current device body is not correct. A little attention. In addition, similar code will move the libreveal.plist into the device:

SCP xxx/libreveal.plist  [email protected]192.168.  2.6

The plist content is the bundle ID of the app you want to debug. Such as:

Put a copy of it here. Gets the code for the bundle ID of all apps on the phone.

Nsmutablearray *allid =[[Nsmutablearray alloc] init]; Class Lsapplicationworkspace_class= Objc_getclass ("Lsapplicationworkspace"); NSObject* Workspace =[Lsapplicationworkspace_class performselector: @selector (defaultworkspace)]; Nsarray*apparray =[Workspace performselector: @selector (allapplications)]; NSString*model =[Uidevice Currentdevice].model;  for(NSString *strinchApparray) {        //Convert to String typeNSString *string=[str description]; Nsrange Rg1= [stringRangeofstring:@">"]; string= [stringSubstringFromIndex:rg1.location +2]; if([Model isequaltostring:@"IPad"]) {nsrange rg2= [stringRangeofstring:@"<"]; string= [stringSubstringToIndex:rg2.location-1]; } nsdictionary*dic = @{@"Bundleid":string};    [Allid Addobject:dic]; } NSLog (@"allid-----%@", allid);

2. On the iOS device, set the enabled applications in Reveal to specify the app you want to view.

It's done here.
Next open the app you want to view, and then open reveal. You can see the corresponding interface.

Latest reveal installation and use, you can view any appui layout.

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.