0

My code like follow

self.view1.layer.anchorPoint = CGPointMake(1.0, 0.5);
CGAffineTransform transform = CGAffineTransformRotate(self.view1.transform,M_PI/2);
self.view1.transform = transform;

My UI is like follow

enter image description here

The light green background view is view1,it has a subview a label.If i run the code, in my opinion the view and the label will rotated M_PI/2 around the progressview's left point.But the truth is like follow:

enter image description here

Dracuuula
  • 313
  • 2
  • 15

1 Answers1

0

Add

NSLog(@"%@", self.view1);

To check that self.view1 - is a background view, not the label. Also I think you need to change anchorPoint.

Avt
  • 16,485
  • 4
  • 50
  • 70