The error it is giving you implies you are trying to set a property that doesn't exist. Did you misspell 'anchorPoint'? If that isn't the case and your question merely has a typo, double check your types.
Your 'Compass2' should be a UIView of some sort and its 'layer' should be a CALayer object.
Well a CGAffineTransform is just a Matrix describing rotation, translation and scaling. Remember you can use CGAffineTransform CGAffineTransformConcat ( CGAffineTransform t1, CGAffineTransform t2 ); to chain up transforms. This basically just means you are multiplying the transformation matrizes.So since you know, the standard Rotation just rotates around the center of the UIImageView, you could break up your task into 3 parts, moving into the rotation point rotate move back and chain them up.
CGAffineTransform t = imageView. Transform; CGPoint p = rotationPoint - imageView. Center; imageView.
Transform = CGAffineTransformTranslate( CGAffineTransformRotate( CGAffineTransformTranslate(t, p. X, p. Y), angle) , -p.
X, -p. Y); I didn't test this code, but you should get a solution along this way. EDIT: I also realized I didn't use the Concatenation.
You need to use the concatenation if you use "CGAffineTransformMake...". I just put the functions into each other.
I had this same problem. As "aBitObvious" pointed out, you must import the QuartzCore framework to access the anchorPoint property of the CALayer class. #import.
You may not be able to access the property anchorPoint for your view by just importing #import ie; Compass2.layer. AnchorPoint= CGPointMake(0.5,1); For that you have to write the following import statement in the beginning of the implementation file. #import Now you will be able to write the following code without generating any errors.
Compass2.layer. AnchorPoint= CGPointMake(0.5,1).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.