Search code examples
ioscgaffinetransformscale

How can I alter the height of a UIView using CGAffineTransformScale?


Is it possible to change the height of a UIView alone using CGAffineTransformScale?

I do not want to entirely scale my UIView. I just wanted to increase the height alone?


Solution

  • You may not use transform. Better to set the frame of the UIView. Since this really change the height of the view.

    view.frame=CGRectMake(0,0,100,200);