Permalink
Browse files

Fix wrong animation option from UIViewAnimationCurveEaseIn to UIViewA…

…nimationOptionCurveEaseIn
  • Loading branch information...
1 parent b285a5e commit a52b04c9948ee31c456a49e79b201823a9108a11 @romaonthego committed Jan 28, 2013
View
4 RECurtainViewController/UIViewController+RECurtainViewController.m
@@ -81,7 +81,7 @@ - (void)curtainRevealViewController:(UIViewController *)viewControllerToReveal t
[coverView addSubview:leftCurtain];
[coverView addSubview:rightCurtain];
- [UIView animateWithDuration:0.7 delay:0 options:UIViewAnimationCurveEaseIn animations:^{
+ [UIView animateWithDuration:0.7 delay:0 options:UIViewAnimationOptionCurveEaseIn animations:^{
if (transitionStyle == RECurtainTransitionHorizontal) {
leftCurtain.frame = CGRectMake(- selfPortrait.size.width / 2, 0, selfPortrait.size.width / 2, selfPortrait.size.height);
rightCurtain.frame = CGRectMake(selfPortrait.size.width, 0, selfPortrait.size.width / 2, selfPortrait.size.height);
@@ -91,7 +91,7 @@ - (void)curtainRevealViewController:(UIViewController *)viewControllerToReveal t
}
} completion:nil];
- [UIView animateWithDuration:0.3 delay:0.5 options:UIViewAnimationCurveEaseIn animations:^{
+ [UIView animateWithDuration:0.3 delay:0.5 options:UIViewAnimationOptionCurveEaseIn animations:^{
fadedView.frame = CGRectMake(0, offset, controllerScreenshot.size.width, controllerScreenshot.size.height);
fadedView.alpha = 1;
} completion:^(BOOL finished){
View
10 RECurtainViewControllerExample/RECurtainViewControllerExample.xcodeproj/project.pbxproj
@@ -149,7 +149,7 @@
30BFA94215AA042D00C05D32 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0430;
+ LastUpgradeCheck = 0460;
ORGANIZATIONNAME = "Roman Efimov";
};
buildConfigurationList = 30BFA94515AA042D00C05D32 /* Build configuration list for PBXProject "RECurtainViewControllerExample" */;
@@ -216,6 +216,10 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -241,6 +245,10 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;

0 comments on commit a52b04c

Please sign in to comment.