ViewMonitor can measure view positions with accuracy.
Switch branches/tags
Nothing to show
Clone or download
daisuke0131 Merge pull request #25 from bryant1410/master
Fix broken headings in Markdown files
Latest commit f556ca8 Apr 19, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example fix build error Jun 29, 2016
Source Merge pull request #22 from daisuke0131/develop Nov 6, 2015
ViewMonitor.xcodeproj added xcodeproj Sep 29, 2015
ViewMonitor added xcodeproj Sep 29, 2015
ViewMonitorTests added xcodeproj Sep 29, 2015
assets replace title image Oct 4, 2015
.gitignore use resources from bundle Aug 3, 2015
.travis.yml Initial Release Jun 15, 2015
Gemfile added Gemfile Aug 3, 2015
Gemfile.lock added Gemfile Aug 3, 2015
LICENSE Initial Release Jun 15, 2015
README.md Fix broken Markdown headings Apr 17, 2017
ViewMonitor.podspec version 1.0.9 Nov 6, 2015

README.md

ViewMonitor

Version License Carthage

What's ViewMonitor

ViewMonitor can measure view positions with accuracy. This library is to check design sheet from native app.

behave like this.

  • UIViewController

demo

  • UITableViewController

demo

Usage

To run the example project, clone the repo.

Requirements

  • iOS 8.0+
  • Xcode 7.0+

Installation

cocoaPods

ViewMonitor is available through CocoaPods. To install it, simply add the following line in your Podfile:

pod "ViewMonitor"

This library use swift. So, you have to add use_frameworks! in Podfile.

after that, please run

pod install

Carthage

To install, you can also use Carthage.

You can install Carthage with Homebrew.

$ brew update
$ brew install carthage

To integrate ViewMonitor into your Xcode project using Carthage, write the following line in your Cartfile.

github "daisuke0131/ViewMonitor"

Manually

If you don't use CocoaPods and Carthage, you should add Source/* files in your project.

How to use

For Swift Project

First, import ViewMonitor

Execute ViewMonitor.start() after application started. Like this

import ViewMonitor

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  ViewMonitor.start()
  return true
}

After that, execution button appear.

Please, refer to Example/ViewMonitorExample

For Objective-C Project

Add bridge-header in your project. Add #import "YourProjectName-Swift.h" in your project.

Import ViewMonitor, @import ViewMonitor

Execute [ViewMonitor start] after application started. Like this

# import "YourProjectName-Swift.h"
@import ViewMonitor;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [ViewMonitor start];
    return YES;
}

After that, execution button appear.

Please, refer to Example/ViewMonitorObjcExample

Author

developer

Daisuke Yamashita

designer

Satomi Nogawa

License

ViewMonitor is available under the MIT license. See the LICENSE file for more info.

Other

How to measure UIView position on Native App at potatotips #18