-
Notifications
You must be signed in to change notification settings - Fork 3
/
OBAdditions.h
46 lines (39 loc) · 1.46 KB
/
OBAdditions.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// OBAdditions.h
//
// Created by Oriol Blanc on 03/04/12.
// Copyright (c) 2012 Oriol Blanc. All rights reserved.
//
#import "Utils.h"
#import "OBTheme.h"
#import "NSData+OBAdditions.h"
#import "NSDate+OBAdditions.h"
#import "NSNumber+OBAdditions.h"
#import "NSString+OBAdditions.h"
#import "NSURL+OBAdditions.h"
#import "UIActionSheet+OBAdditions.h"
#import "UIAlertView+OBAdditions.h"
#import "UIBarButtonItem+OBAdditions.h"
#import "UIButton+OBAdditions.h"
#import "UIColor+OBAdditions.h"
#import "UILabel+OBAdditions.h"
#import "UINavigationBar+OBAdditions.h"
#import "UINavigationItem+OBAdditions.h"
#import "UITextField+OBAdditions.h"
#import "UIView+OBAdditions.h"
#import "UIImage+OBAdditions.h"
#import "UIImageView+OBAdditions.h"
#import "UISwitch+OBAdditions.h"
#import "UITextView+OBAdditions.h"
#import "UIWebView+OBAdditions.h"
// Log methods
#define LogMethod() NSLog(@"%@", NSStringFromSelector(_cmd));
#define LogFrame(f) NSLog(@"Frame: %@", NSStringFromCGRect(f));
#define LogSize(s) NSLog(@"Size: %@", NSStringFromCGSize(s));
#define LogMainThread() NSLog(@"Main thread: %d", [[NSThread currentThread] isMainThread]);
// Math
#define ToRad(deg) ( (M_PI * (deg)) / 180.0 )
/* Blocks useful stuff */
#define createBlockSafeSelf() __block typeof(self) blockSafeSelf = self;
// Warnings
#define ilegalStepWarningWithFormat(__FORMAT__, ...) [OBTheme ilegalStepWarningWithString:[NSString stringWithFormat:__FORMAT__,##__VA_ARGS__]];