It should be easy: when I use CGAffineTransformMakeScaleon UIViewwith width = 0.5and height = 0.5, it shrinks in the upper left corner. I need him to shrink around his center.
CGAffineTransformMakeScale
UIView
width = 0.5
height = 0.5
How can i achieve this?
Be sure to turn off autorun if you experience the same behavior!
CGAffineTransformMakeScale UIView .
:
[UIView animateWithDuration:0.5 delay:0 options:UIViewAnimationCurveEaseInOut animations:^{ self.myView.transform = CGAffineTransformMakeScale(2, 2); } completion:nil ];
.. myView , .
Source: https://habr.com/ru/post/1743895/More articles:Are classes necessary for creating methods (defs) in Python? - pythonAvoid copying data between user and kernel space and vice versa - linuxКак узнать, существует ли метод в Obj-C при задании NSString - objective-cSWIG: from simple C ++ to working Wrapper - javaGraphical representation in Dr Scheme - schemesent recv buffers are returned synchronously or asynchronously after calling rdma_disconnect () - linux-kernelreceiving keyboard events with pyqt - pythonAndroid: get the idea framed - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1743899/error-converting-pil-bw-images-to-numpy-arrays&usg=ALkJrhgDCIWwy3BZu17684qMChlcvti5YADoes the rails have previous_path / url? - ruby-on-railsAll Articles