YMASizeConstraint Class Reference

Inherits from NSObject
Conforms to NSCopying
NSMutableCopying
Declared in YMANativeAssetsAppearance.h

Overview

A class with object sizing constraints. If you want to edit the object sizing constraints, use the YMAMutableSizeConstraint class.

  1. Properties
    1. type
    2. value
  2. Methods
    1. + constraintWithType:value:

Properties

type

Object sizing constraint. See acceptable values in YMASizeConstraintType.

@property (nonatomic, assign, readonly) YMASizeConstraintType type

value

The constraint value. The meaning of the value depends on the type property.

@property (nonatomic, assign, readonly) CGFloat value

Methods

+ constraintWithType:value:

Creates an object of the YMASizeConstraint class (object sizing constraint).

+ (instancetype)constraintWithType:(YMASizeConstraintType)type
                             value:(CGFloat)value

Parameters

type

Object sizing constraint. See acceptable values in YMASizeConstraintType.

value

The constraint value. The meaning of the value depends on the type property.

Return Value

The specified object sizing constraint.


Generated by appledoc 2.2.1 (build 1334).