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 <Foundation/Foundation.h> | |
#import <libextobjc/EXTConcreteProtocol.h> | |
@protocol Maybe <NSObject> | |
- (id<Maybe>)map:(id (^)(id value))block; | |
- (id<Maybe>)flattenMap:(id<Maybe> (^)(id value))block; | |
- (id<Maybe>)orElse:(id)defaultValue; | |
- (id)getOrElse:(id)defaultValue; |
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
+ (UIImage *)launchImageWithPrefix:(NSString *)prefix interfaceOrientation:(UIInterfaceOrientation)orientation | |
{ | |
NSString *imageName = nil; | |
// TODO.GregoryM: fillup rest of image names and check in different cases | |
CGFloat mainScreenHeight = CGRectGetHeight([UIScreen mainScreen].bounds); | |
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) | |
{ | |
if (mainScreenHeight == 568) { | |
imageName = UIInterfaceOrientationIsPortrait(orientation) ? @"-700-568h@2x.png" : nil; |
NewerOlder