ios - Iphone Simulator photos Without changing orientation? -


i've followed several posts adding photos iphone simulator , work, however, there bad side effect of changing orientation , related tiff metadata. in conflict iphone itself.

for example, regardless of orientation take photo (portrait/landscape), iphone display "right-side up". however, metadata remains unchanged, orientation information still correct (i.e. 0,1,2, or 3)

however, once added iphone simulator, images "corrected" , orientation "0".

this means these statements work on iphone (correctly returns 0-3) not on simulator (always returns 0):

uiimage *image=info[uiimagepickercontrolleroriginalimage]; nslog(@"original orientation:%li",image.imageorientation); 

so, here question (finally):

how can add photos simulator , maintain correct, , necessary, metadata can test without having use iphone?


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -