ios - UIImageJPGRepresentation and UIImagePNGRepresentation crash -
i have imagepicker , selecting on image want upload it. need uiimage
tonsdata
. have used uiimagepngrepresentation
, uiimagejpegrepresentation
. both of cases app crash. works simulator crash in device in second time. first time works perfect.
first, before using method debug image view object , after check length of nsdata after conversion.
Comments
Post a Comment