iphone - How can I alter the values of an transform? -


For example, I can access them like this:

  self Layer.transform M32  

but I can not give any value for it, like

  self.layer.transform.m32 = 0.3f;  

It tells invalid work but should not it really work?

  Straight CATransform3D {CGFloat m11, m12, m13, m14; CGFloat M21, M22, M23, M24; CGFloat M31, M32, M33, M34; CGFloat m41, m42, m 43, m44; };  

At least Xcode recognizes all these areas in the matrix.

You can access the property called "conversion" (CALayer class), meaning call setter function CATransform3D logic type with. So you can not directly access members of the CATransform3D structure.

You may need to initialize the temporary variable (CATransform3D type) then specify it completely for the property.

Any property that you seek to reach in this way,

For example:

  view .frame.origin.x = 0; // will be ** ** ** UIView * work for the view  

worked sample (via floating variable):

  CATransform3D temp = Self.layer.transform; // Temp.m32 = 0.3f making temporary copy; Self.layer.transform = temp; // Call Setter [self. Layer saturation transform: temporary] - this means the same  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -