Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yy = [CALayer layer];
- yy.frame = CGRectMake(300,300, 300,300);
- rear = [CALayer layer];
- rear.backgroundColor = CGColorCreateGenericRGB( 0.75, 0.75, 0.75, 1.0 );
- [yourOnlyNsView setLayer:rear]; // these two lines must be in this order
- [yourOnlyNsView setWantsLayer:YES]; // these two lines must be in this order
- [rear addSublayer:rr];
- [rear addSublayer:yy];
- [yy addSublayer:s1];
- [yy addSublayer:s2];
- [yy addSublayer:s3];
- [yy addSublayer:s4];
- [rear addSublayer:tt];
- [rear addSublayer:ff];
- -(void) shuff
- {
- [CATransaction begin];
- [CATransaction setValue:[NSNumber numberWithFloat:0.0f]
- forKey:kCATransactionAnimationDuration];
- if ..
- [rear insertSublayer:ff below:yy];
- else
- [rear insertSublayer:ff above:yy];
- [CATransaction commit];
- }
Add Comment
Please, Sign In to add comment