0

I am creating a basic animation of opening and closing of doors(like in a lift, its two doors slide back and fro). I have used CABasicAnimation for translation of two doors(two imageview).

My problem is when the door(imageview) slides out, the image of the door comes out of the frame; hence I am using masking property of CALayer but I can't get the expected result.

I want the part of image of door to get masked which comes out of frame while sliding out and it should appear again while sliding in.

thanks mates.

A_Thorne
  • 141
  • 1
  • 12

1 Answers1

2

set the property "clip subview" of the view containing this imageview as its subview in the nib file might help you

Khushboo
  • 1,208
  • 1
  • 8
  • 19