Thursday, 25 July 2013

To resize or scale UIView

CGFloat dWidth = [[UIScreen mainScreen]bounds].size.width;
CGFloat dHeight = [[UIScreen mainScreen]bounds].size.height;
            
CGAffineTransform transform;
transform = CGAffineTransformMakeScale(dWidth/urView.bounds.size.width, dHeight/urView.bounds.size.height);

dHeight.transform = transform;