You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
997 B
33 lines
997 B
// |
|
// UIView+Extension.h |
|
// Weibo |
|
// |
|
// Created by Fay on 15/9/14. |
|
// Copyright (c) 2015年 Fay. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
|
|
@interface UIView (Extension) |
|
|
|
@property(nonatomic,assign)CGFloat x; |
|
@property(nonatomic,assign)CGFloat y; |
|
@property(nonatomic,assign)CGFloat centerX; |
|
@property(nonatomic,assign)CGFloat centerY; |
|
@property(nonatomic,assign)CGFloat width; |
|
@property(nonatomic,assign)CGFloat height; |
|
@property(nonatomic,assign)CGSize size; |
|
@property(nonatomic,assign)CGPoint origin; |
|
|
|
-(CGFloat)getAbsoluteX; |
|
-(CGFloat)getAbsoluteY; |
|
+ (instancetype)viewFromXib; |
|
+ (instancetype)viewFirstXib; |
|
-(void)layerCornerRadius:(CGFloat)radius masksToBounds:(BOOL)mask; |
|
|
|
|
|
/**<view圆角和边框*/ |
|
- (void)ml_viewWithCornerRadius:(CGFloat)radius borderWidth:(CGFloat)borderWidth andBorderColor:(UIColor *)borderColor; |
|
- (void)ml_viewWithCornerRadius:(CGFloat)radius borderWidth:(CGFloat)borderWidth andBorderColor:(UIColor *)borderColor andBackColor:(UIColor *)backColor; |
|
|
|
@end
|
|
|