GithubHelp home page GithubHelp logo

mdabbagh88 / viewintrospector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cbess/viewintrospector

0.0 1.0 0.0 5.76 MB

Visual Debugging Tool for the iOS Simulator. A view hierarchy viewer desktop app for CBIntrospect.

License: GNU General Public License v3.0

viewintrospector's Introduction

View Introspector

app icon

Download View Introspector

CBIntrospector iOS lib

View Introspector is a desktop app for the iOS Simulator that aid in debugging user interfaces built with UIKit. It's especially useful for UI layouts that are dynamically created or can change during runtime.

Main Window Screenshot

View Introspector Screenshot

CBIntrospector iOS lib

Download View Introspector

It uses keyboard shortcuts to handle starting, ending and other commands. It can also be invoked via an app-wide UIGestureRecognizer if it is to be used on the device.

Features:

  • Simple to setup and use
  • See the entire hierarchy (view tree) of the window
  • Send messages (call any method) to the selected view during runtime
  • Displays a views origin & size, including distances to edges of main window
  • Displays properties of a view, including subclass properties, actions and targets (see below for an example)
  • Displays accessibility properties โ€” useful for UI automation scripts
  • Move and resize view frames during runtime
  • Highlighting of view frames

CBIntrospector Demo App

View Introspector Usage

  • Download desktop app - View Introspector
  • Start your app
  • Start View Introspector desktop app
  • Install CBIntrospector iOS lib
  • Start debugging target iOS project
  • In the iOS simulator, press space key to activate the introspect tool
  • Back in the View Introspector, click Reload to load the projects
  • Select the project to open from View Introspector project window (Menu->Window->Show Projects)
  • Interact with View Introspector UIView tree to select or adjust the UIView in the iOS Simulator
  • (More documentation coming soon)

Before you start, make sure the DEBUG environment variable is set. CBIntrospect will not run without that set to prevent it being left in for production use.

Provide custom name of view:

- (void)viewDidLoad
{
    [super viewDidLoad];

    // provide custom names for use by the View Introspector desktop app and console output
	[[CBIntrospect sharedIntrospector] setName:@"myActivityIndicator" forObject:self.activityIndicator accessedWithSelf:YES];
    [[CBIntrospect sharedIntrospector] setNameForViewController:self];
}

License

Made available under the GPL v3 license.

viewintrospector's People

Contributors

cbess avatar calimarkus avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.