I receive a memory warning when using UIImageJPEGRepresentation, is there any way to avoid this? It doesn\'t crash the app but I\'d like to avoid it if possible. It does int
in ARC: Just put your code inside small block of @autoreleasepool
@autoreleasepool { NSData *data = UIImageJPEGRepresentation(img, 0.5); // something with data }