cdts/xdts-ios 3/TreeHole/Code/Utility/PYWebViewController/JHUD/UIView+JHUD.h
2023-07-27 09:20:00 +08:00

30 lines
830 B
Objective-C

//
// UIView+JHUD.h
// JHudViewDemo
//
// Created by 晋先森 on 16/7/16.
// Copyright © 2016年 晋先森. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (JHUD)
- (void)addConstraintWidth:(CGFloat)width
height:(CGFloat)height;
- (void)addConstraintCenterXToView:(UIView *)xView
centerYToView:(UIView *)yView;
- (NSLayoutConstraint *)addConstraintCenterYToView:(UIView *)yView
constant:(CGFloat)constant;
- (NSLayoutConstraint *)addConstarintWithTopView:(UIView *)topView
toBottomView:(UIView *)bottomView
constarint:(CGFloat)constarint;
- (void)removeConstraintWithAttribte:(NSLayoutAttribute)attribute;
- (void)removeAllConstraints;
@end