windshg / VPImageCropper

Image cropper like the one in WeChat
Apache License 2.0
584 stars 129 forks source link

How can i change height of the rationView? #7

Open billidani7 opened 10 years ago

billidani7 commented 10 years ago

I would like to crop images for 640 X 300. How can o change the cropFrame?

I call the init method with this way but the ratioView doesnt change.

[[VPImageCropperViewController alloc] initWithImage:portraitImg cropFrame:CGRectMake(0, 100.0f, self.view.frame.size.width, 300) limitScaleRatio:3.0];

billidani7 commented 10 years ago

I have found the solution. It was my fault. The control is awesome and works perfectly