title: Want to get animation like opening a camera shutter in iphone
body: <p>i am making an application based on photography as per the requirement i have to show all progress or activity indicator in a menner to look it like opening camera shutter.</p>
  
  <p>For better explanation see attached image.</p>
  
  <p><img src="https://i.stack.imgur.com/1NosN.png" alt="enter image description here"></p>
  
  <p>As shown in image while loading closed shutter of camera should rotate and after loading message should come after opening camera shutter.</p>
  
  <p>Please tell me how to achieve this kind of animation..</p>
  
  <p>EDIT: i got a code from <a href="https://stackoverflow.com/questions/13370114/shutter-animation-avfoundation-iphone">This Question</a>. I have used this code like this</p>
  
  <pre><code>-(void)shutter
  {
      CATransition *shutterAnimation = [CATransition animation];
      [shutterAnimation setDelegate:self];
      [shutterAnimation setDuration:1.5];
      shutterAnimation.timingFunction = UIViewAnimationCurveEaseInOut;
      [shutterAnimation setType:@"cameraIris"];
      [shutterAnimation setValue:@"cameraIris" forKey:@"cameraIris"];
      [shutterAnimation setRepeatDuration:4.5];
      [[[self.view viewWithTag:90] layer] addAnimation:shutterAnimation forKey:@"cameraIris"];
  
  }
  </code></pre>
  
  <p>But it gave me square animation i want this animation in round shape. see attached image.</p>
  
  <p><img src="https://i.stack.imgur.com/88L4J.png" alt="enter image description here"></p>
  
  <p>I tried to give corner radius to this layer like</p>
  
  <pre><code>[[[self.view viewWithTag:90] layer] setCornerRadius:75.0];//size of this view is 150X150 so i give radius 75 to make it round.
  [[[self.view viewWithTag:90] layer] setBorderWidth:2.0];
  [[[self.view viewWithTag:90] layer] setBorderColor:[[UIColor blackColor] CGColor]];
  </code></pre>
  
  <p>But this code dosent work....
  Please guide me how to make this animation in circular shape.</p>