Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Zoom in an UIImageView using 3D transform in objc

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 370
    Comment on it

    If you are looking for a function to Zoom in an UIImageView in a 3D tranform scale then you should use CATransform3DScale.

    First of all declare a BOOL variable to check scale points. Here I am taking CGFloat _scalePoints and CATransform3D transform.

    -(void)zoomin{
        _scalePoints = 1;
        _yourImageView.layer.transform = CATransform3DScale(_yourImageView.layer.transform, _scalePoints,_scalePoints, _scalePoints);
            _scalePoints = _scalePoints+.05;
        _transform = _yourImageView.layer.transform;
    }
    

    It will change your UIImageView into CATransform3DScale for x, y, z axis.

    Happy coding!

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: