aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-05-14 22:31:51 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-05-14 22:31:51 -0700
commit8e361569d850f689179e469ed413aa45ef7bf1ec (patch)
tree421101753a691c7b01a28369e678f80fff8f7fc4 /example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
parent4d4c38e55607ac8ee2819ff904834d5a9b8fa922 (diff)
Don't encode JSON dictionary into a string
Diffstat (limited to 'example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm')
-rwxr-xr-xexample/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm7
1 files changed, 3 insertions, 4 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm b/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
index b60e91c7..dd2b36ee 100755
--- a/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
+++ b/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
@@ -251,15 +251,14 @@ typedef void (^DownloadCallback)(NSError * error);
[info setObject:(id) kCFBooleanTrue forKey:(id) kCGImageSourceCreateThumbnailFromImageAlways];
[info setObject:(id) [NSNumber numberWithFloat:(float) IMAGE_PREVIEW_WIDTH] forKey:(id) kCGImageSourceThumbnailMaxPixelSize];
thumbnail = CGImageSourceCreateThumbnailAtIndex(imageSource, 0, (__bridge CFDictionaryRef) info);
- //[info release];
CGImageDestinationRef destination;
NSMutableData * destData = [NSMutableData data];
destination = CGImageDestinationCreateWithData((__bridge CFMutableDataRef) destData,
- + (CFStringRef) @"public.jpeg",
- + 1, NULL);
-
+ (CFStringRef) @"public.jpeg",
+ 1, NULL);
+
CGImageDestinationAddImage(destination, thumbnail, NULL);
CGImageDestinationFinalize(destination);