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
@interface UIWindow (resize) | |
-(void)_adjustSizeClassesAndResizeWindowToFrame:(CGRect)frame; | |
@end | |
typedef enum _UICustomRes | |
{ | |
UICustomResiPadTwoThirds, | |
UICustomResiPadHalf, | |
UICustomResiPadOneThird, | |
UICustomResiPhone47, |
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
// clang -framework Foundation -fobjc-arc -O3 test.m | |
#import <Foundation/Foundation.h> | |
@interface Slice : NSObject | |
@property NSInteger start; | |
@property NSInteger length; | |
@end | |
@implementation Slice |
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 | |
import ImageIO | |
infix operator >>= { associativity left } | |
func >>=<A,B>(l: A?, r: A -> B?) -> B? { | |
if let x = l { | |
return r(x) | |
} | |
return nil |
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
// | |
// UIApplication+UDCStatusView.m | |
// Udacity | |
// | |
// Created by Oliver Cameron on 12/5/13. | |
// Copyright (c) 2013 Udacity. All rights reserved. | |
// | |
#import "UIApplication+UDCStatusView.h" |
NewerOlder