Coder Social home page Coder Social logo

pcautolayout's Introduction

UIView+PCAutolayoutBindingExtensions

Methods

addConstraintBindingToView:onAttribute:

- (void)addConstraintBindingToView:(UIView *)view onAttribute:(NSLayoutAttribute)attribute;

Adds the a constraint to the receiver binding it to the given view on the given attribute.

Parameters

  • view: The view to which to bind the receiver.

  • attribute: The attribute on which to bind the views

Discussion

This method adds the constraint to the super-most view, of the receiver and view. The constraint's relationship is Equal, its multiplier is 1, and its constant is 0.

UIView+PCAutolayoutConstraintExtensions

Properties

heightConstraint

@property (nonatomic, readonly) NSLayoutConstraint *heightConstraint;

The primary constraint responsible for the view's height.

Discussion

The constraint might be applied to the view's superview.

horizontalOriginConstraint

@property (nonatomic, readonly) NSLayoutConstraint *horizontalOriginConstraint;

The primary constraint responsible for the view's horizontal origin.

Discussion

The constraint might be applied to the view's superview.

verticalOriginConstraint

@property (nonatomic, readonly) NSLayoutConstraint *verticalOriginConstraint;

The primary constraint responsible for the view's vertical origin.

Discussion

The constraint might be applied to the view's superview.

widthConstraint

@property (nonatomic, readonly) NSLayoutConstraint *widthConstraint;

The primary constraint responsible for the view's width.

Discussion

The constraint might be applied to the view's superview.

heightConstraint

@property (nonatomic, readonly) NSLayoutConstraint *heightConstraint;

The primary constraint responsible for the view's height.

Discussion

The constraint might be applied to the view's superview.

Methods

addConstraint:withIdentifier:

- (void)addConstraint:(NSLayoutConstraint *)constraint withIdentifier:(NSString *)identifier;

Adds the given constraint to the receiver with the given identifier.

Parameters

  • constraint: The constraint to add.

  • identifier: The identifier for the constraint.

constraintWithIdentifier:

- (NSLayoutConstraint *)constraintWithIdentifier:(NSString *)identifier;  

Returns the constraint with the given identifier.

Parameters

  • identifier: The constraint's identifier.

Returns

The constraint with the given identifier.

NSLayoutConstraint+PCAutolayoutIdentifierExtensions

Properties

identifier

@property (nonatomic) NSString *identifier;

A string identifying the constraint.

User-Defined Attributes

You can use Interface Builder's User-Defined Attributes to set the identifier of a constraint.

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.