UI修改读取定时
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// UIView+Frame.h
|
||||
// FWChat
|
||||
//
|
||||
// Created by Yang on 16/1/25.
|
||||
// Copyright © 2016年 Yang. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface UIView (Frame)
|
||||
|
||||
@property (nonatomic, assign) CGFloat x;
|
||||
@property (nonatomic, assign) CGFloat y;
|
||||
|
||||
@property (nonatomic, assign) CGPoint origin;
|
||||
@property (nonatomic, assign) CGSize size;
|
||||
|
||||
@property (nonatomic) CGFloat centerX;
|
||||
@property (nonatomic) CGFloat centerY;
|
||||
|
||||
@property (nonatomic) CGFloat top;
|
||||
@property (nonatomic) CGFloat bottom;
|
||||
@property (nonatomic) CGFloat right;
|
||||
@property (nonatomic) CGFloat left;
|
||||
|
||||
@property (nonatomic) CGFloat width;
|
||||
@property (nonatomic) CGFloat height;
|
||||
|
||||
+ (instancetype)viewFromXib;
|
||||
|
||||
/** 设置锚点 */
|
||||
- (void)setAnchorPoint:(CGPoint)anchorPoint;
|
||||
/** 设回默认锚点 */
|
||||
- (void)setDefaultAnchorPoint;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user