danielebogo/DBCamera

Issues with Camera Crop Segue

Open

#147 opened on Mar 19, 2015

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Objective-C (256 forks)github user discovery
Hacktoberfest

Repository metrics

Stars
 (1,258 stars)
PR merge metrics
 (PR metrics pending)

Description

Having an issue setting the crop view. When I call:

CGFloat width = [[UIScreen mainScreen]bounds].size.width; segue.cropRect = (CGRect){ 0, 0, width, width};

The view is never set to the mainScreen width. But If I hard code values example: segue.cropRect = (CGRect){ 0, 0, 200, 400}. Then it works. Am I doing something wrong? I'm running the camera on a 6 plus so I need the crop view to adjust to the screen width to create a square.

Contributor guide