Home  >  Q&A  >  body text

objective-c - iOS开发 拍照之后出现一个正方形的框?怎么变成矩形的?

PHP中文网PHP中文网2741 days ago302

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:22:59

    It seems that the box cannot be turned into a rectangle using the native method. You can consider using third-party libraries, such as PEPhotoCropEditor

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:22:59

    Rewrite an interface

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 09:22:59

    allowsEditing = NO

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-18 09:22:59

    UIGraphicsBeginImageContext(size);
    [image drawInRect:CGRectMake(0, 0, size.width, size.height)];
    UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    你改变写size就知道了

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 09:22:59

    It is recommended that you use CaptureSession to build your own camera. If you have high customization requirements for the camera interface, iamgePickerController will disappoint you.

    reply
    0
  • Cancelreply