In developing iphone Pictures application, it was found photo gallery of pictures is not all upright, uploaded to the server and found the picture is rotated, the Internet also find some of the picture rotation method, but when on multiple images in real machines rotate together in the process, there will be the program exits, trace debug procedures found parked in drawInRect function, sometimes a memory overflow problem, people know how to deal with it? Can provide a bit of code the better.
Reply:
That is your code memory overflow ....
Of course you want to view your code ...
Others do not even give you a memory overflow code
Or would you use a memory overflow
Reply:
You are using the algorithm to control the picture spin? Memory overflow should be created, there is no question of the release
Reply:
Now I found a thread inside with pictures and crop rotation, using UIGraphicsBeginImageContext way will create an image repeatedly invoked context stack, it is easy to quit, but the use of bitmap images with CGBitmapContextCreate way some tips invalidcontext. What is a good solution to it? There is a corresponding code better.
Reply:
Multithreading?
Reply:
Devoted to the SDK, there is a function of the management of image processing
No comments:
Post a Comment