-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLayoutHelper.h
30 lines (23 loc) · 1.09 KB
/
LayoutHelper.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
//
// LayoutHelper.h
//
// Created by Eccelor on 06/03/18.
// Copyright © 2018 Eccelor. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface LayoutHelper : NSObject
- (instancetype) initWithRect: (CGRect) rect;
- (CGFloat) percentageX: (CGFloat) percent;
- (CGFloat) percentageY: (CGFloat) percent;
- (CGFloat) percentageX: (CGFloat) percent OfView: (UIView *) view;
- (CGFloat) percentageY: (CGFloat) percent OfView: (UIView *) view;
- (CGFloat) remainingPercentageX: (CGFloat) percent FromWidth: (CGFloat) width;
- (CGFloat) remainingPercentageY: (CGFloat) percent FromHeight: (CGFloat) height;
- (CGFloat) remainingPercentageX: (CGFloat) percent FromWidth: (CGFloat) width OfView: (UIView *) view;
- (CGFloat) remainingPercentageY: (CGFloat) percent FromHeight: (CGFloat) height OfView: (UIView *) view;
+ (CGFloat) percentageHeight: (CGFloat) percent OfView: (UIView *) view;
+ (CGFloat) percentageWidth: (CGFloat) percent OfView: (UIView *) view;
+ (CGFloat) percentageXOfScreen: (CGFloat) percent;
+ (CGFloat) percentageYOfScreen: (CGFloat) percent;
@end