Created
January 28, 2013 04:56
-
-
Save valexa/4653170 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
NSView *parent = [[NSView alloc] initWithFrame:NSZeroRect]; | |
NSView *child = [[NSView alloc] initWithFrame:NSZeroRect]; | |
[parent addSubview:child]; | |
[child setWantsLayer:YES]; | |
CALayer *childLayer = [child layer]; | |
CATransformLayer *transformLayer = [CATransformLayer layer]; | |
[transformLayer addSublayer:childLayer]; | |
[parent setWantsLayer:YES]; | |
NSLog(@"%@",childLayer); | |
NSLog(@"%@",transformLayer.sublayers); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment