danielebogo/DBCamera

Issues with Camera Crop Segue

Open

#147 创建于 2015年3月19日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Objective-C (256 fork)github user discovery
Hacktoberfest

仓库指标

Star
 (1,258 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南