-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWe.h
More file actions
53 lines (50 loc) · 1.22 KB
/
Copy pathWe.h
File metadata and controls
53 lines (50 loc) · 1.22 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// MyTool.h
// Class5
//
// Created by RainyTunes on 8/12/15.
// Copyright (c) 2015 RainyTunes. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, Color) {
Red = 0,
Pink = 1,
Purple = 2,
PurpleDeep = 3,
Indigo = 4,
Blue = 5,
BlueLight = 6,
Cyan = 7,
Teal = 8,
Green = 9,
GreenLight = 10,
Lime = 11,
Yellow = 12,
Amber = 13,
Orange = 14,
OrangeDeep = 15,
Brown = 16,
Grey = 17,
BlueGrey = 18,
};
@interface We : NSObject
/**
Get Method
**/
//Get Hexadecimal Conversion Methods
+ (NSString *)getHexWithDec:(NSInteger)num;
+ (NSInteger)getDecWithHex:(NSString *)aString;
//Get UIColor Methods
+ (UIColor *)getColor:(Color)color;
+ (UIColor *)getColorRandom;
+ (UIColor *)getColorByRGBHex:(NSString *)hexString;
+ (UIColor *)getColorWithRed:(NSInteger)red Green:(NSInteger)green Blue:(NSInteger)blue;
//Get Others Methods
+ (UIButton *)getButton;
+ (UIButton *)getButtonWithTitle:(NSString *)title Color:(Color)color;
+ (NSDictionary *)getDictionaryWithHexData:(NSData *)hexData;
+ (NSInteger)getScreenHeight;
+ (NSInteger)getScreenWidth;
+ (UIImage *)getImageColored:(UIColor *)color Size:(CGSize)size;
@end