Oblique reduction of UIView and oblique reduction of UIView

Source: Internet
Author: User

Oblique reduction of UIView and oblique reduction of UIView
Oblique reduction of UIView by Wu xueying

[UIView animateWithDuration: 0.5 animations: ^ {CGAffineTransform t = CGAffineTransformMakeRotation (M_PI *. 3); t = CGAffineTransformScale (t ,. 75 ,. 75); _ moveView. transform = t;} completion: ^ (BOOL finished) {[self drop];}];



For the gesture in ios, I want to scale a viewcontroller and Scroll it.

Is viewController loaded on view?
Each viewcontroller has a view
Another viewcontroller can be loaded as the first Root View.
You need to write a proxy in the second class. When touchmove is executed for the first view, you can cover the view size in the second class.

Why is the image I rendered in the Custom UIView not scaled to the appropriate size of the window area?

You just need to draw the image in rect. Cut the image. // create a custom image that is stretchable. note that this might return a new instance of a different class-(UIImage *) stretchableImageWithLeftCapWidth :( NSInteger) leftCapWidth topCapHeight :( NSInteger) topCapHeight; how can this problem be solved?
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.