Skip to content

Commit

Permalink
slower animation when opening shutter, background image for shutter d…
Browse files Browse the repository at this point in the history
…ecoration
  • Loading branch information
Stefan Wehr committed May 15, 2012
1 parent fa66157 commit 22bec2e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions FRShutterViewController.xcodeproj/project.pbxproj
Expand Up @@ -47,6 +47,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
52ABE6E515622B4200B870E8 /* akte.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = akte.png; sourceTree = "<group>"; };
DAA967E9156150FD00BD5AE4 /* libFRShutterViewController.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libFRShutterViewController.a; sourceTree = BUILT_PRODUCTS_DIR; };
DAA967EC156150FD00BD5AE4 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
DAA967F0156150FD00BD5AE4 /* FRShutterViewController-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "FRShutterViewController-Prefix.pch"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -100,6 +101,14 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
52ABE6E4156229E500B870E8 /* Resources */ = {
isa = PBXGroup;
children = (
52ABE6E515622B4200B870E8 /* akte.png */,
);
name = Resources;
sourceTree = "<group>";
};
DAA967DE156150FD00BD5AE4 = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -133,6 +142,7 @@
DAA967EE156150FD00BD5AE4 /* FRShutterViewController */ = {
isa = PBXGroup;
children = (
52ABE6E4156229E500B870E8 /* Resources */,
DAA967F1156150FD00BD5AE4 /* FRShutterViewController.h */,
DAA967F2156150FD00BD5AE4 /* FRShutterViewController.m */,
DAA9683A1561549100BD5AE4 /* FRShutterDecorationViewController.h */,
Expand Down Expand Up @@ -392,6 +402,7 @@
DAA967F7156150FD00BD5AE4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "";
DSTROOT = /tmp/FRShutterViewController.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "FRShutterViewController/FRShutterViewController-Prefix.pch";
Expand All @@ -404,6 +415,7 @@
DAA967F8156150FD00BD5AE4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "";
DSTROOT = /tmp/FRShutterViewController.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "FRShutterViewController/FRShutterViewController-Prefix.pch";
Expand All @@ -426,6 +438,7 @@
"-ObjC",
);
PRODUCT_NAME = "$(TARGET_NAME)";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
TARGETED_DEVICE_FAMILY = 2;
WRAPPER_EXTENSION = app;
};
Expand Down
3 changes: 3 additions & 0 deletions FRShutterViewController/FRShutterDecorationView.m
Expand Up @@ -15,6 +15,9 @@ - (id)initWithFrame:(CGRect)frame
self = [super initWithFrame:frame];
if (self) {
self.backgroundColor = [UIColor redColor];
UIImage *img = [UIImage imageNamed:@"akte.png"];
UIImageView *v = [[UIImageView alloc] initWithImage:img];
[self addSubview:v];
}
return self;
}
Expand Down
2 changes: 1 addition & 1 deletion FRShutterViewController/FRShutterViewController.m
Expand Up @@ -184,7 +184,7 @@ - (void)handleGesture:(UIPanGestureRecognizer *)g
f.origin = [self.shutterDecorationViewController originMin];
}
}
[UIView animateWithDuration:0.2
[UIView animateWithDuration:0.5
delay:0.0
options:UIViewAnimationCurveEaseOut
animations:^{
Expand Down
Binary file added FRShutterViewController/akte.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 22bec2e

@weissi
Copy link

@weissi weissi commented on 22bec2e May 15, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danke!

Please sign in to comment.