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 KEY(Class, key) ( YES ? @#key : ^{ (void)((Class *)[[Class alloc] init]).key; return @""; }() ) | |
/* | |
Usage: | |
KEY(UIViewController, navigationItem) - returns @"navigationItem" | |
KEY(UIView, frame) - returns @"frame" | |
KEY(UIView, tag) - returns @"tag" | |
KEY(UIView, foobar) - compilation error! | |
*/ |
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
Process: Xcode [278] | |
Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
Identifier: com.apple.dt.Xcode | |
Version: 5.0.2 (3335.32) | |
Build Info: IDEApplication-3335032000000000~4 | |
App Item ID: 497799835 | |
App External ID: 106632651 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [136] | |
User ID: 502 |
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 LayoutWrapperView : UIView | |
@property (nonatomic, readonly) UIView *view; | |
@property (nonatomic, assign) UIEdgeInsets insets; | |
@property (nonatomic, assign) BOOL collapsesIfViewIsNotVisible; |
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
0 = (1 - 9 + 8) * 9 | |
1 = (1 * 9 - 8)^9 | |
2 = 19 - 8 - 9 | |
3 = (19 + 8) / 9 | |
4 = 1 * (√9) - 8 + 9 | |
5 = 1 + √9 - 8 + 9 | |
6 = (1 + 9 + 8) / (√9) | |
7 = -1 + 9 + 8 - 9 | |
8 = (1 - 9) / 8 + 9 | |
9 = 1 + 9 + 8 - 9 |
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
0 = (1 - 9 + 8) * 9 | |
1 = (1 * 9 - 8)^9 | |
2 = 19 - 8 - 9 | |
3 = (19 + 8) / 9 | |
4 = 1 * (√9) - 8 + 9 | |
5 = 1 + √9 - 8 + 9 | |
6 = (1 + 9 + 8) / (√9) | |
7 = -1 + 9 + 8 - 9 | |
8 = (1 - 9) / 8 + 9 | |
9 = 1 + 9 + 8 - 9 |