This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DEVICE_IS_RETINA4 ([UIScreen mainScreen].bounds.size.height == 568.0f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DEVICE_IS_IPAD ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DEGREES_TO_RADIANS(degrees) ((M_PI * degrees) / 180.0) | |
#define RADIANS_TO_DEGREES(radians) ((180.0 / M_PI) * radians) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DEVICE_IS_LOWER_iOS6 ([[[UIDevice currentDevice] systemVersion] floatValue] < 6.0f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Wdeprecated-declarations" | |
#pragma clang diagnostic pop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (id)sharedManager | |
{ | |
static dispatch_once_t once = 0; | |
static id sharedInstance = nil; | |
dispatch_once(&once, ^{ | |
sharedInstance = [self alloc] init]; | |
}); | |
return sharedInstance; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface UIDevice (iPadMini) | |
@property (nonatomic, readonly, getter = isMiniModel) BOOL miniModel; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define IOS_SDK_GREATER_IOS_6 (__IPHONE_OS_VERSION_MAX_ALLOWED >= 69000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UITableView+CATransaction.swift | |
// | |
// Created by Marcel Dierkes on 08.05.15. | |
// Copyright (c) 2015 Marcel Dierkes. All rights reserved. | |
// | |
import UIKit | |
import QuartzCore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GCD+Swift.swift | |
// | |
// Created by Marcel Dierkes on 01.06.15. | |
// Copyright (c) 2015 Marcel Dierkes. All rights reserved. | |
// | |
import Dispatch | |
/** |
OlderNewer