Closed teffi closed 10 years ago
I'm trying to set cropview.croprect but the rect seem to ignore it meanwhile it works well if I used the controller.
What I'm trying to do is create a fix cropview regardless of what image is selected.
Here's my code:
cropView = [[PECropView alloc] initWithFrame:self.view.bounds]; cropView.image = coverPhotoView.image; cropView.cropRect = CGRectMake(0, 0, 320, 173); [self.view addSubview:cropView];
Anybody can help to solve this issue?
Apparently cropview initialization shall be placed on viewDidLoad block and the setting of the rect on ViewDidAppear.
Reference
I'm trying to set cropview.croprect but the rect seem to ignore it meanwhile it works well if I used the controller.
What I'm trying to do is create a fix cropview regardless of what image is selected.
Here's my code:
Anybody can help to solve this issue?