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

25 lines
792 B
Objective-C
Executable File

//
// 代码地址: https://github.com/iphone5solo/PYSearch
// 代码地址: http://www.code4app.com/thread-11175-1-1.html
// Created by ko1o.
// Copyright © 2016年 iphone5solo. All rights reserved.
// UIView 分类
#import <UIKit/UIKit.h>
#define PYScreenW [[UIScreen mainScreen] bounds].size.width
#define PYScreenH [[UIScreen mainScreen] bounds].size.height
@interface UIView (PYExtension)
@property (nonatomic, assign) CGFloat py_x;
@property (nonatomic, assign) CGFloat py_y;
@property (nonatomic, assign) CGFloat py_centerX;
@property (nonatomic, assign) CGFloat py_centerY;
@property (nonatomic, assign) CGFloat py_width;
@property (nonatomic, assign) CGFloat py_height;
@property (nonatomic, assign) CGSize py_size;
@property (nonatomic, assign) CGPoint py_origin;
@end