Permalink
Browse files

Working on image upload.

git-svn-id: file:///Users/gt/Dropbox/svn/Meemi/trunk/Meemi@273 7aed0847-f77a-4578-bcf1-aebb807eab6a
  • Loading branch information...
1 parent 1d5f8e2 commit d50094208686ef4cfeaefbb5db0362cae090fd4a gt committed May 14, 2011
View
@@ -91,10 +91,7 @@ -(void)createThumbnail:(CGFloat) ofSize
}
CGSize newSize = CGSizeMake(scaledWidth, scaledHeight);
// Create a graphics image context
- if ([[[UIDevice currentDevice] systemVersion] intValue] >= 4)
- UIGraphicsBeginImageContextWithOptions(newSize, NO, [[UIScreen mainScreen] scale]);
- else
- UIGraphicsBeginImageContext(newSize);
+ UIGraphicsBeginImageContext(newSize);
// Tell the old image to draw in this new context, with the desired size
[self.theImage drawInRect:CGRectMake(0, 0, scaledWidth, scaledHeight)];
// Get the new image from the context
@@ -107,10 +104,7 @@ -(void)createThumbnail:(CGFloat) ofSize
-(void)removeOrientation
{
// Create a graphics image context
- if ([[[UIDevice currentDevice] systemVersion] intValue] >= 4)
- UIGraphicsBeginImageContextWithOptions(self.theImage.size, NO, [[UIScreen mainScreen] scale]);
- else
- UIGraphicsBeginImageContext(self.theImage.size);
+ UIGraphicsBeginImageContext(self.theImage.size);
// Tell the old image to draw in this new context, with the desired size
[self.theImage drawInRect:CGRectMake(0, 0, self.theImage.size.width, self.theImage.size.height)];
// Get the new image from the context
@@ -151,6 +145,7 @@ -(IBAction)sendIt:(id)sender
}
// Send "edited" localization to session
[Meemi setNearbyPlaceName:self.locationLabel.text];
+ NSLog(@"image size: %.0fx%.0f", self.theThumbnail.size.height, self.theThumbnail.size.width);
if(self.replyScreenName == nil)
[[Meemi sharedSession] postImageAsMeme:self.theThumbnail withDescription:self.description.text withLocalization:canBeLocalized];
else
Binary file not shown.
Binary file not shown.
@@ -829,14 +829,14 @@
IPHONEOS_DEPLOYMENT_TARGET = 3.1;
OTHER_LDFLAGS = "-licucore";
PREBINDING = NO;
- SDKROOT = iphoneos4.1;
+ SDKROOT = iphoneos;
};
name = Debug;
};
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Giacomo Tufano";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -845,14 +845,14 @@
OTHER_LDFLAGS = "-licucore";
PREBINDING = NO;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "120C4DAD-3082-48A5-AA57-75F027C92EBA";
- SDKROOT = iphoneos4.1;
+ SDKROOT = iphoneos;
};
name = Release;
};
C039B16011D51B200008C6CD /* Distribution */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Giacomo Tufano";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -861,7 +861,7 @@
OTHER_LDFLAGS = "-licucore";
PREBINDING = NO;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "120C4DAD-3082-48A5-AA57-75F027C92EBA";
- SDKROOT = iphoneos4.1;
+ SDKROOT = iphoneos;
};
name = Distribution;
};
@@ -882,7 +882,7 @@
"\"$(SRCROOT)/connections\"",
);
PRODUCT_NAME = Meemi;
- "PROVISIONING_PROFILE[sdk=iphoneos*]" = "5FD5166C-6A5F-4E76-8619-4BD0358005F6";
+ "PROVISIONING_PROFILE[sdk=iphoneos*]" = "E5877AB8-51CB-4A4D-A0F2-E83B4AB53046";
SDKROOT = iphoneos;
};
name = Distribution;
@@ -899,7 +899,7 @@
OTHER_LDFLAGS = "-licucore";
PREBINDING = NO;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
- SDKROOT = iphoneos4.1;
+ SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = "Ad-Hoc";
Oops, something went wrong.

0 comments on commit d500942

Please sign in to comment.