Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
- if ([touches count] == 1) {
- for (UITouch *touch in touches) {
- CGPoint point = [touch locationInView:[touch view]];
- point = [[touch view] convertPoint:point toView:nil];
- CALayer *layer = [(CALayer *)self.view.layer.presentationLayer hitTest:point];
- layer = layer.modelLayer;
- layer.opacity = 0.5;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement