Crop UIImage to fit a frame image

后端 未结 4 1217
眼角桃花
眼角桃花 2020-12-09 01:46

I need to crop a UIImage, taken with the device camera, so that it fits inside another UIImage, which represents a frame (with rounded

4条回答
  •  温柔的废话
    2020-12-09 02:23

    make a IBOutlet in your controller.

    @property (retain)IBOutlet UIImageView* imageView;
    

    and in -(void) viewDidLoad set

    imageView.layer.masksToBounds = YES;
    

提交回复
热议问题