danielebogo/DBCamera

Issues with Camera Crop Segue

Open

#147 aperta il 19 mar 2015

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Objective-C (256 fork)github user discovery
Hacktoberfest

Metriche repository

Star
 (1258 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor