-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCGExt.h
32 lines (25 loc) · 1016 Bytes
/
CGExt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// CGExt.h
// Kho
//
// Created by iOSDec on 08/02/2018.
// Copyright © 2018 iosdec. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface UIView (CGExt)
- (void)sameRectWithNewX:(CGFloat)x;
- (void)sameRectWithNewX:(CGFloat)x y:(CGFloat)y;
- (void)sameRectWithNewY:(CGFloat)y;
- (void)sameRectWithNewWidth:(CGFloat)width;
- (void)sameRectWithNewHeight:(CGFloat)height;
- (void)sameRectWithNewHeight:(CGFloat)height y:(CGFloat)y;
- (void)sameRectWithView:(UIView *)view;
- (void)sameRectWithNewWidth:(CGFloat)width height:(CGFloat)height;
- (void)sameRectWithNewWidth:(CGFloat)width height:(CGFloat)height y:(CGFloat)y;
@end
@interface CGeometry : NSObject
+ (CGFloat)findHeightForText:(NSString *)text havingWidth:(CGFloat)widthValue andFont:(UIFont *)font;
+ (CGFloat)recalculatedViewHeight:(UIView *)view label:(UILabel *)label minHeight:(CGFloat)min;
+ (CGFloat)recalculatedViewHeight:(UIView *)view textView:(UITextView *)label minHeight:(CGFloat)min;
@end