title: Rotation UIImageView around An anchorPoint
body: <p>i want to rotate multiple UIImageView around anchor point and give them a little rotation so that could be something like this </p>
  
  <p><a href="https://www.google.com.eg/search?q=cards.&amp;um=1&amp;ie=UTF-8&amp;hl=en&amp;tbm=isch&amp;source=og&amp;sa=N&amp;tab=wi&amp;ei=zzkjUoXFL5GWswbrrIGgBw&amp;biw=1024&amp;bih=615&amp;sei=0TkjUu2wHcmntAbC54Bo#facrc=_&amp;imgdii=_&amp;imgrc=BdArJtkexKgyQM:;nKsOa4ZSkOOFcM;http%253A%252F%252Fdailywicca.com%252Fwp-content%252Fuploads%252F2011%252F10%252Fplaying-cards1.jpg;http%253A%252F%252Fdailywicca.com%252F2011%252F10%252F08%252Freading-with-a-plain-deck-of-cards%252F;1920;1200" rel="nofollow noreferrer">https://www.google.com.eg/search?q=cards.&amp;um=1&amp;ie=UTF-8&amp;hl=en&amp;tbm=isch&amp;source=og&amp;sa=N&amp;tab=wi&amp;ei=zzkjUoXFL5GWswbrrIGgBw&amp;biw=1024&amp;bih=615&amp;sei=0TkjUu2wHcmntAbC54Bo#facrc=<em>&amp;imgdii=</em>&amp;imgrc=BdArJtkexKgyQM%3A%3BnKsOa4ZSkOOFcM%3Bhttp%253A%252F%252Fdailywicca.com%252Fwp-content%252Fuploads%252F2011%252F10%252Fplaying-cards1.jpg%3Bhttp%253A%252F%252Fdailywicca.com%252F2011%252F10%252F08%252Freading-with-a-plain-deck-of-cards%252F%3B1920%3B1200</a></p>
  
  <p>this is my code i think it should work but wear thing happened</p>
  
  <pre><code>int angel=0;
  
  for (int i=0; i&lt;6; i++)
  {
      UIImage *image=[UIImage imageNamed:@"images.jpeg"];
      UIImageView *imageView=[[UIImageView alloc]initWithImage:image];
      [self.view addSubview:imageView];
      [imageView setFrame:CGRectMake(0, 0, 80, 80)];
      [imageView setCenter:CGPointMake(150, 150)];
      imageView.layer.anchorPoint = CGPointMake(1.0, 1.0);
      imageView.transform = CGAffineTransformMakeRotation(angel);
  
      angel+=3;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/YBhJC.png" alt="enter image description here"></p>
  
  <p>i think they all should be in the same side as iam increasing angle with 3 , how to achieve this ?</p>