ios - Make image the same as camera view -


i using uiimagepickercontroller taking photo. full size photo using method

var cameraaspectratio : cgfloat = 4.0 / 3.0; var imagewidth = floorf(float(screensize.width * cameraaspectratio)); var data = float(screensize.height)/imagewidth var scale = cgfloat(ceilf((data * 10.0) / 10.0))  cameraviewtransform = cgaffinetransformmakescale(scale, scale) 

but after capturing image, view saw in camera layer different photo(photo takes more view in, bigger)

i want make photo, , output photo same scale , view, using whole fullscreen overlay. can advice some?

i took link in 1 of project: uiimagepickercontroller doesn't fill screen

hope helps.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -