Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Reset any transform in iOS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 439
    Comment on it

    In iOS when we apply transform methods to any UIView element like UIIMageView, UIView and all those UI Elements which inherits UIView properties. After applying transform to these views they get change and holds new transform values. In that case if you want to reset their transform value then you can do it very easy. Use below line of code to achieve it.

     yourImageView.transform = CGAffineTransformIdentity;
    

    *yourImageView can be any UIView kind of object.

    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: