Repository: gonzalezreal/Vertigo
Branch: master
Commit: 5e35a820a3c5
Files: 28
Total size: 64.7 KB
Directory structure:
gitextract_3r6ogl9_/
├── .gitignore
├── LICENSE
├── README.md
├── Vertigo/
│ ├── TGRImageViewController.h
│ ├── TGRImageViewController.m
│ ├── TGRImageViewController.xib
│ ├── TGRImageZoomAnimationController.h
│ ├── TGRImageZoomAnimationController.m
│ ├── UIImage+AspectFit.h
│ └── UIImage+AspectFit.m
├── Vertigo.podspec
└── VertigoSample/
├── VertigoSample/
│ ├── Base.lproj/
│ │ └── Main.storyboard
│ ├── Images.xcassets/
│ │ ├── AppIcon.appiconset/
│ │ │ └── Contents.json
│ │ ├── LaunchImage.launchimage/
│ │ │ └── Contents.json
│ │ └── photo.imageset/
│ │ └── Contents.json
│ ├── TGRAppDelegate.h
│ ├── TGRAppDelegate.m
│ ├── TGRViewController.h
│ ├── TGRViewController.m
│ ├── VertigoSample-Info.plist
│ ├── VertigoSample-Prefix.pch
│ ├── en.lproj/
│ │ └── InfoPlist.strings
│ └── main.m
├── VertigoSample.xcodeproj/
│ ├── project.pbxproj
│ └── project.xcworkspace/
│ └── contents.xcworkspacedata
└── VertigoSampleTests/
├── VertigoSampleTests-Info.plist
├── VertigoSampleTests.m
└── en.lproj/
└── InfoPlist.strings
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
================================================
FILE: LICENSE
================================================
Vertigo
Copyright (c) 2013 Guillermo Gonzalez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
================================================
FILE: README.md
================================================
# Vertigo
**Vertigo** is a simple image viewer which includes a **custom view controller transition** that mimics the new **iOS 7 Photos app** image zoom transition effect.
## Installation
### Requirements
Vertigo requires iOS 7 or greater.
### From CocoaPods
Add `pod 'Vertigo'` to your Podfile.
### Manually
Drag the `Vertigo` folder into your project. If your project doesn't use ARC you must enable it for all the `.m` files under the `Vertigo` folder.
## Usage
**Vertigo** includes the following classes:
* `TGRImageViewController` is the image viewer itself. The user can double tap on the image to zoom it in or out. A single tap will dismiss the viewer.
* `TGRImageZoomAnimationController` is the object that performs the custom transition between your view controller and a `TGRImageViewController` (that is, the **Photos app** image zoom transition effect).
To present and dismiss a `TGRImageViewController` from your view controller using the custom transition effect, your view controller needs to implement the new `UIViewControllerTransitioningDelegate` protocol and return a `TGRImageZoomAnimationController` initialized with the image view that will be used as the inital (or final in case of dismissal) point of the transition.
```objc
#import "TGRImageViewController.h"
#import "TGRImageZoomAnimationController.h"
@interface MyViewController ()
@end
@implementation MyViewController
...
- (id)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source {
if ([presented isKindOfClass:TGRImageViewController.class]) {
return [[TGRImageZoomAnimationController alloc] initWithReferenceImageView:self.imageView];
}
return nil;
}
- (id)animationControllerForDismissedController:(UIViewController *)dismissed {
if ([dismissed isKindOfClass:TGRImageViewController.class]) {
return [[TGRImageZoomAnimationController alloc] initWithReferenceImageView:self.imageView];
}
return nil;
}
- (IBAction)showImageViewer {
TGRImageViewController *viewController = [[TGRImageViewController alloc] initWithImage:self.imageView.image];
// Don't forget to set ourselves as the transition delegate
viewController.transitioningDelegate = self;
[self presentViewController:viewController animated:YES completion:nil];
}
```
## Contact
[Guillermo Gonzalez](http://github.com/gonzalezreal)
[@gonzalezreal](https://twitter.com/gonzalezreal)
## License
Vertigo is available under the MIT license. See [LICENSE](https://github.com/gonzalezreal/Vertigo/blob/master/LICENSE).
================================================
FILE: Vertigo/TGRImageViewController.h
================================================
// TGRImageViewController.h
//
// Copyright (c) 2013 Guillermo Gonzalez
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import
// Simple full screen image viewer.
//
// Allows the user to view an image in full screen and double tap to zoom it.
// The view controller can be dismissed with a single tap.
@interface TGRImageViewController : UIViewController
// The scroll view used for zooming.
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
// The image view that displays the image.
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
// The image that will be shown.
@property (strong, nonatomic, readonly) UIImage *image;
// Initializes the receiver with the specified image.
- (id)initWithImage:(UIImage *)image;
@end
================================================
FILE: Vertigo/TGRImageViewController.m
================================================
// TGRImageZoomTransition.m
//
// Copyright (c) 2013 Guillermo Gonzalez
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import "TGRImageViewController.h"
@interface TGRImageViewController ()
@property (weak, nonatomic) IBOutlet UITapGestureRecognizer *singleTapGestureRecognizer;
@property (weak, nonatomic) IBOutlet UITapGestureRecognizer *doubleTapGestureRecognizer;
@end
@implementation TGRImageViewController
- (id)initWithImage:(UIImage *)image {
if (self = [super init]) {
_image = image;
}
return self;
}
- (void)viewDidLoad {
[super viewDidLoad];
[self.singleTapGestureRecognizer requireGestureRecognizerToFail:self.doubleTapGestureRecognizer];
self.imageView.image = self.image;
}
- (BOOL)prefersStatusBarHidden {
return YES;
}
#pragma mark - UIScrollViewDelegate methods
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
return self.imageView;
}
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
if (self.scrollView.zoomScale == self.scrollView.minimumZoomScale) {
[self dismissViewControllerAnimated:YES completion:nil];
}
}
#pragma mark - Private methods
- (IBAction)handleSingleTap:(UITapGestureRecognizer *)tapGestureRecognizer {
if (self.scrollView.zoomScale == self.scrollView.minimumZoomScale) {
[self dismissViewControllerAnimated:YES completion:nil];
}
else {
// Zoom out
[self.scrollView zoomToRect:self.scrollView.bounds animated:YES];
}
}
- (IBAction)handleDoubleTap:(UITapGestureRecognizer *)tapGestureRecognizer {
if (self.scrollView.zoomScale == self.scrollView.minimumZoomScale) {
// Zoom in
CGPoint center = [tapGestureRecognizer locationInView:self.scrollView];
CGSize size = CGSizeMake(self.scrollView.bounds.size.width / self.scrollView.maximumZoomScale,
self.scrollView.bounds.size.height / self.scrollView.maximumZoomScale);
CGRect rect = CGRectMake(center.x - (size.width / 2.0), center.y - (size.height / 2.0), size.width, size.height);
[self.scrollView zoomToRect:rect animated:YES];
}
else {
// Zoom out
[self.scrollView zoomToRect:self.scrollView.bounds animated:YES];
}
}
@end
================================================
FILE: Vertigo/TGRImageViewController.xib
================================================
================================================
FILE: Vertigo/TGRImageZoomAnimationController.h
================================================
// TGRImageZoomAnimationController.h
//
// Copyright (c) 2013 Guillermo Gonzalez
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import
// Image zoom custom transition.
@interface TGRImageZoomAnimationController : NSObject
// The image view that will be used as the source (zoom in) or destination
// (zoom out) of the transition.
@property (weak, nonatomic, readonly) UIImageView *referenceImageView;
// Initializes the receiver with the specified reference image view.
- (id)initWithReferenceImageView:(UIImageView *)referenceImageView;
@end
================================================
FILE: Vertigo/TGRImageZoomAnimationController.m
================================================
// TGRImageZoomAnimationController.m
//
// Copyright (c) 2013 Guillermo Gonzalez
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import "TGRImageZoomAnimationController.h"
#import "TGRImageViewController.h"
#import "UIImage+AspectFit.h"
@implementation TGRImageZoomAnimationController
- (id)initWithReferenceImageView:(UIImageView *)referenceImageView {
if (self = [super init]) {
NSAssert(referenceImageView.contentMode == UIViewContentModeScaleAspectFill, @"*** referenceImageView must have a UIViewContentModeScaleAspectFill contentMode!");
_referenceImageView = referenceImageView;
}
return self;
}
- (NSTimeInterval)transitionDuration:(id)transitionContext {
UIViewController *viewController = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
return viewController.isBeingPresented ? 0.5 : 0.25;
}
- (void)animateTransition:(id)transitionContext {
UIViewController *viewController = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
if (viewController.isBeingPresented) {
[self animateZoomInTransition:transitionContext];
}
else {
[self animateZoomOutTransition:transitionContext];
}
}
- (void)animateZoomInTransition:(id)transitionContext {
// Get the view controllers participating in the transition
UIViewController *fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
TGRImageViewController *toViewController = (TGRImageViewController *)[transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
NSAssert([toViewController isKindOfClass:TGRImageViewController.class], @"*** toViewController must be a TGRImageViewController!");
// Create a temporary view for the zoom in transition and set the initial frame based
// on the reference image view
UIImageView *transitionView = [[UIImageView alloc] initWithImage:self.referenceImageView.image];
transitionView.contentMode = UIViewContentModeScaleAspectFill;
transitionView.clipsToBounds = YES;
transitionView.frame = [transitionContext.containerView convertRect:self.referenceImageView.bounds
fromView:self.referenceImageView];
[transitionContext.containerView addSubview:transitionView];
// Compute the final frame for the temporary view
CGRect finalFrame = [transitionContext finalFrameForViewController:toViewController];
CGRect transitionViewFinalFrame = [self.referenceImageView.image tgr_aspectFitRectForSize:finalFrame.size];
// Perform the transition using a spring motion effect
NSTimeInterval duration = [self transitionDuration:transitionContext];
self.referenceImageView.alpha = 0;
[UIView animateWithDuration:duration
delay:0
usingSpringWithDamping:0.7
initialSpringVelocity:0
options:UIViewAnimationOptionCurveLinear
animations:^{
fromViewController.view.alpha = 0;
transitionView.frame = transitionViewFinalFrame;
}
completion:^(BOOL finished) {
fromViewController.view.alpha = 1;
[transitionView removeFromSuperview];
[transitionContext.containerView addSubview:toViewController.view];
[transitionContext completeTransition:YES];
}];
}
- (void)animateZoomOutTransition:(id)transitionContext {
// Get the view controllers participating in the transition
UIViewController *toViewController = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
TGRImageViewController *fromViewController = (TGRImageViewController *)[transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
NSAssert([fromViewController isKindOfClass:TGRImageViewController.class], @"*** fromViewController must be a TGRImageViewController!");
// The toViewController view will fade in during the transition
toViewController.view.frame = [transitionContext finalFrameForViewController:toViewController];
toViewController.view.alpha = 0;
[transitionContext.containerView addSubview:toViewController.view];
[transitionContext.containerView sendSubviewToBack:toViewController.view];
// Compute the initial frame for the temporary view based on the image view
// of the TGRImageViewController
CGRect transitionViewInitialFrame = [fromViewController.imageView.image tgr_aspectFitRectForSize:fromViewController.imageView.bounds.size];
transitionViewInitialFrame = [transitionContext.containerView convertRect:transitionViewInitialFrame
fromView:fromViewController.imageView];
// Compute the final frame for the temporary view based on the reference
// image view
CGRect transitionViewFinalFrame = [transitionContext.containerView convertRect:self.referenceImageView.bounds
fromView:self.referenceImageView];
if (UIApplication.sharedApplication.isStatusBarHidden && ![toViewController prefersStatusBarHidden]) {
transitionViewFinalFrame = CGRectOffset(transitionViewFinalFrame, 0, 20);
}
// Create a temporary view for the zoom out transition based on the image
// view controller contents
UIImageView *transitionView = [[UIImageView alloc] initWithImage:fromViewController.imageView.image];
transitionView.contentMode = UIViewContentModeScaleAspectFill;
transitionView.clipsToBounds = YES;
transitionView.frame = transitionViewInitialFrame;
[transitionContext.containerView addSubview:transitionView];
[fromViewController.view removeFromSuperview];
// Perform the transition
NSTimeInterval duration = [self transitionDuration:transitionContext];
[UIView animateWithDuration:duration
delay:0
options:UIViewAnimationOptionCurveEaseInOut
animations:^{
toViewController.view.alpha = 1;
transitionView.frame = transitionViewFinalFrame;
} completion:^(BOOL finished) {
self.referenceImageView.alpha = 1;
[transitionView removeFromSuperview];
[transitionContext completeTransition:YES];
}];
}
@end
================================================
FILE: Vertigo/UIImage+AspectFit.h
================================================
// UIImage+AspectFit.h
//
// Copyright (c) 2013 Guillermo Gonzalez
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import
@interface UIImage (AspectFit)
- (CGRect)tgr_aspectFitRectForSize:(CGSize)size;
@end
================================================
FILE: Vertigo/UIImage+AspectFit.m
================================================
// UIImage+AspectFit.m
//
// Copyright (c) 2013 Guillermo Gonzalez
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import "UIImage+AspectFit.h"
@implementation UIImage (AspectFit)
- (CGRect)tgr_aspectFitRectForSize:(CGSize)size {
CGFloat targetAspect = size.width / size.height;
CGFloat sourceAspect = self.size.width / self.size.height;
CGRect rect = CGRectZero;
if (targetAspect > sourceAspect) {
rect.size.height = size.height;
rect.size.width = ceilf(rect.size.height * sourceAspect);
rect.origin.x = ceilf((size.width - rect.size.width) * 0.5);
}
else {
rect.size.width = size.width;
rect.size.height = ceilf(rect.size.width / sourceAspect);
rect.origin.y = ceilf((size.height - rect.size.height) * 0.5);
}
return rect;
}
@end
================================================
FILE: Vertigo.podspec
================================================
Pod::Spec.new do |s|
s.name = "Vertigo"
s.version = "0.1"
s.summary = "A simple image viewer which includes a custom transition that mimics the iOS 7 Photos app image zoom effect."
s.description = <<-DESC
**Vertigo** is a simple image viewer which includes a **custom view controller transition** that mimics the new **iOS 7 Photos app** image zoom transition effect.
DESC
s.homepage = "https://github.com/gonzalezreal/Vertigo"
s.screenshots = "https://raw.github.com/gonzalezreal/Vertigo/master/VertigoSample/VertigoSample.gif"
s.license = 'MIT'
s.author = { 'Guillermo Gonzalez' => 'gonzalezreal@icloud.com' }
s.platform = :ios, '7.0'
s.source = { :git => "https://github.com/gonzalezreal/Vertigo.git", :tag => "0.1" }
s.source_files = 'Vertigo'
s.resources = "Vertigo/TGRImageViewController.xib"
s.framework = 'UIKit'
s.requires_arc = true
end
================================================
FILE: VertigoSample/VertigoSample/Base.lproj/Main.storyboard
================================================
================================================
FILE: VertigoSample/VertigoSample/Images.xcassets/AppIcon.appiconset/Contents.json
================================================
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: VertigoSample/VertigoSample/Images.xcassets/LaunchImage.launchimage/Contents.json
================================================
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"subtype" : "retina4",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: VertigoSample/VertigoSample/Images.xcassets/photo.imageset/Contents.json
================================================
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "photo.png"
},
{
"idiom" : "universal",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
================================================
FILE: VertigoSample/VertigoSample/TGRAppDelegate.h
================================================
//
// TGRAppDelegate.h
// VertigoSample
//
// Created by guille on 07/10/13.
// Copyright (c) 2013 Guillermo Gonzalez. All rights reserved.
//
#import
@interface TGRAppDelegate : UIResponder
@property (strong, nonatomic) UIWindow *window;
@end
================================================
FILE: VertigoSample/VertigoSample/TGRAppDelegate.m
================================================
//
// TGRAppDelegate.m
// VertigoSample
//
// Created by guille on 07/10/13.
// Copyright (c) 2013 Guillermo Gonzalez. All rights reserved.
//
#import "TGRAppDelegate.h"
@implementation TGRAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
================================================
FILE: VertigoSample/VertigoSample/TGRViewController.h
================================================
//
// TGRViewController.h
// VertigoSample
//
// Created by guille on 07/10/13.
// Copyright (c) 2013 Guillermo Gonzalez. All rights reserved.
//
#import
@interface TGRViewController : UIViewController
@end
================================================
FILE: VertigoSample/VertigoSample/TGRViewController.m
================================================
//
// TGRViewController.m
// VertigoSample
//
// Created by guille on 07/10/13.
// Copyright (c) 2013 Guillermo Gonzalez. All rights reserved.
//
#import "TGRViewController.h"
#import "TGRImageViewController.h"
#import "TGRImageZoomAnimationController.h"
@interface TGRViewController ()
@property (weak, nonatomic) IBOutlet UIButton *imageButton;
@end
@implementation TGRViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.imageButton.imageView.contentMode = UIViewContentModeScaleAspectFill;
}
#pragma mark - UIViewControllerTransitioningDelegate methods
- (id)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source {
if ([presented isKindOfClass:TGRImageViewController.class]) {
return [[TGRImageZoomAnimationController alloc] initWithReferenceImageView:self.imageButton.imageView];
}
return nil;
}
- (id)animationControllerForDismissedController:(UIViewController *)dismissed {
if ([dismissed isKindOfClass:TGRImageViewController.class]) {
return [[TGRImageZoomAnimationController alloc] initWithReferenceImageView:self.imageButton.imageView];
}
return nil;
}
#pragma mark - Private methods
- (IBAction)showImage {
TGRImageViewController *viewController = [[TGRImageViewController alloc] initWithImage:[self.imageButton imageForState:UIControlStateNormal]];
viewController.transitioningDelegate = self;
[self presentViewController:viewController animated:YES completion:nil];
}
@end
================================================
FILE: VertigoSample/VertigoSample/VertigoSample-Info.plist
================================================
CFBundleDevelopmentRegionenCFBundleDisplayName${PRODUCT_NAME}CFBundleExecutable${EXECUTABLE_NAME}CFBundleIdentifiercom.gonzalezreal.${PRODUCT_NAME:rfc1034identifier}CFBundleInfoDictionaryVersion6.0CFBundleName${PRODUCT_NAME}CFBundlePackageTypeAPPLCFBundleShortVersionString1.0CFBundleSignature????CFBundleVersion1.0LSRequiresIPhoneOSUIMainStoryboardFileMainUIRequiredDeviceCapabilitiesarmv7UISupportedInterfaceOrientationsUIInterfaceOrientationPortraitUIInterfaceOrientationLandscapeLeftUIInterfaceOrientationLandscapeRight
================================================
FILE: VertigoSample/VertigoSample/VertigoSample-Prefix.pch
================================================
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
#import
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import
#import
#endif
================================================
FILE: VertigoSample/VertigoSample/en.lproj/InfoPlist.strings
================================================
/* Localized versions of Info.plist keys */
================================================
FILE: VertigoSample/VertigoSample/main.m
================================================
//
// main.m
// VertigoSample
//
// Created by guille on 07/10/13.
// Copyright (c) 2013 Guillermo Gonzalez. All rights reserved.
//
#import
#import "TGRAppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([TGRAppDelegate class]));
}
}
================================================
FILE: VertigoSample/VertigoSample.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
99A9FE201802D6F100074858 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99A9FE1F1802D6F100074858 /* Foundation.framework */; };
99A9FE221802D6F100074858 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99A9FE211802D6F100074858 /* CoreGraphics.framework */; };
99A9FE241802D6F100074858 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99A9FE231802D6F100074858 /* UIKit.framework */; };
99A9FE2A1802D6F100074858 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 99A9FE281802D6F100074858 /* InfoPlist.strings */; };
99A9FE2C1802D6F100074858 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 99A9FE2B1802D6F100074858 /* main.m */; };
99A9FE301802D6F100074858 /* TGRAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 99A9FE2F1802D6F100074858 /* TGRAppDelegate.m */; };
99A9FE331802D6F100074858 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 99A9FE311802D6F100074858 /* Main.storyboard */; };
99A9FE361802D6F100074858 /* TGRViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 99A9FE351802D6F100074858 /* TGRViewController.m */; };
99A9FE381802D6F100074858 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 99A9FE371802D6F100074858 /* Images.xcassets */; };
99A9FE3F1802D6F100074858 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99A9FE3E1802D6F100074858 /* XCTest.framework */; };
99A9FE401802D6F100074858 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99A9FE1F1802D6F100074858 /* Foundation.framework */; };
99A9FE411802D6F100074858 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99A9FE231802D6F100074858 /* UIKit.framework */; };
99A9FE491802D6F100074858 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 99A9FE471802D6F100074858 /* InfoPlist.strings */; };
99A9FE4B1802D6F100074858 /* VertigoSampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 99A9FE4A1802D6F100074858 /* VertigoSampleTests.m */; };
99A9FE681802D76800074858 /* TGRImageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 99A9FE621802D76800074858 /* TGRImageViewController.m */; };
99A9FE691802D76800074858 /* TGRImageViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 99A9FE631802D76800074858 /* TGRImageViewController.xib */; };
99A9FE6A1802D76800074858 /* TGRImageZoomAnimationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 99A9FE651802D76800074858 /* TGRImageZoomAnimationController.m */; };
99A9FE6B1802D76800074858 /* UIImage+AspectFit.m in Sources */ = {isa = PBXBuildFile; fileRef = 99A9FE671802D76800074858 /* UIImage+AspectFit.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
99A9FE421802D6F100074858 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 99A9FE141802D6F100074858 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 99A9FE1B1802D6F100074858;
remoteInfo = VertigoSample;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
99A9FE1C1802D6F100074858 /* VertigoSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VertigoSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
99A9FE1F1802D6F100074858 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
99A9FE211802D6F100074858 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
99A9FE231802D6F100074858 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
99A9FE271802D6F100074858 /* VertigoSample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "VertigoSample-Info.plist"; sourceTree = ""; };
99A9FE291802D6F100074858 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
99A9FE2B1802D6F100074858 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
99A9FE2D1802D6F100074858 /* VertigoSample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "VertigoSample-Prefix.pch"; sourceTree = ""; };
99A9FE2E1802D6F100074858 /* TGRAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TGRAppDelegate.h; sourceTree = ""; };
99A9FE2F1802D6F100074858 /* TGRAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TGRAppDelegate.m; sourceTree = ""; };
99A9FE321802D6F100074858 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
99A9FE341802D6F100074858 /* TGRViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TGRViewController.h; sourceTree = ""; };
99A9FE351802D6F100074858 /* TGRViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TGRViewController.m; sourceTree = ""; };
99A9FE371802D6F100074858 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
99A9FE3D1802D6F100074858 /* VertigoSampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VertigoSampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
99A9FE3E1802D6F100074858 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
99A9FE461802D6F100074858 /* VertigoSampleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "VertigoSampleTests-Info.plist"; sourceTree = ""; };
99A9FE481802D6F100074858 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
99A9FE4A1802D6F100074858 /* VertigoSampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VertigoSampleTests.m; sourceTree = ""; };
99A9FE611802D76800074858 /* TGRImageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TGRImageViewController.h; sourceTree = ""; };
99A9FE621802D76800074858 /* TGRImageViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TGRImageViewController.m; sourceTree = ""; };
99A9FE631802D76800074858 /* TGRImageViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TGRImageViewController.xib; sourceTree = ""; };
99A9FE641802D76800074858 /* TGRImageZoomAnimationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TGRImageZoomAnimationController.h; sourceTree = ""; };
99A9FE651802D76800074858 /* TGRImageZoomAnimationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TGRImageZoomAnimationController.m; sourceTree = ""; };
99A9FE661802D76800074858 /* UIImage+AspectFit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+AspectFit.h"; sourceTree = ""; };
99A9FE671802D76800074858 /* UIImage+AspectFit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+AspectFit.m"; sourceTree = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
99A9FE191802D6F100074858 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
99A9FE221802D6F100074858 /* CoreGraphics.framework in Frameworks */,
99A9FE241802D6F100074858 /* UIKit.framework in Frameworks */,
99A9FE201802D6F100074858 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
99A9FE3A1802D6F100074858 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
99A9FE3F1802D6F100074858 /* XCTest.framework in Frameworks */,
99A9FE411802D6F100074858 /* UIKit.framework in Frameworks */,
99A9FE401802D6F100074858 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
99A9FE131802D6F100074858 = {
isa = PBXGroup;
children = (
99A9FE601802D76700074858 /* Vertigo */,
99A9FE251802D6F100074858 /* VertigoSample */,
99A9FE441802D6F100074858 /* VertigoSampleTests */,
99A9FE1E1802D6F100074858 /* Frameworks */,
99A9FE1D1802D6F100074858 /* Products */,
);
sourceTree = "";
};
99A9FE1D1802D6F100074858 /* Products */ = {
isa = PBXGroup;
children = (
99A9FE1C1802D6F100074858 /* VertigoSample.app */,
99A9FE3D1802D6F100074858 /* VertigoSampleTests.xctest */,
);
name = Products;
sourceTree = "";
};
99A9FE1E1802D6F100074858 /* Frameworks */ = {
isa = PBXGroup;
children = (
99A9FE1F1802D6F100074858 /* Foundation.framework */,
99A9FE211802D6F100074858 /* CoreGraphics.framework */,
99A9FE231802D6F100074858 /* UIKit.framework */,
99A9FE3E1802D6F100074858 /* XCTest.framework */,
);
name = Frameworks;
sourceTree = "";
};
99A9FE251802D6F100074858 /* VertigoSample */ = {
isa = PBXGroup;
children = (
99A9FE2E1802D6F100074858 /* TGRAppDelegate.h */,
99A9FE2F1802D6F100074858 /* TGRAppDelegate.m */,
99A9FE311802D6F100074858 /* Main.storyboard */,
99A9FE341802D6F100074858 /* TGRViewController.h */,
99A9FE351802D6F100074858 /* TGRViewController.m */,
99A9FE371802D6F100074858 /* Images.xcassets */,
99A9FE261802D6F100074858 /* Supporting Files */,
);
path = VertigoSample;
sourceTree = "";
};
99A9FE261802D6F100074858 /* Supporting Files */ = {
isa = PBXGroup;
children = (
99A9FE271802D6F100074858 /* VertigoSample-Info.plist */,
99A9FE281802D6F100074858 /* InfoPlist.strings */,
99A9FE2B1802D6F100074858 /* main.m */,
99A9FE2D1802D6F100074858 /* VertigoSample-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "";
};
99A9FE441802D6F100074858 /* VertigoSampleTests */ = {
isa = PBXGroup;
children = (
99A9FE4A1802D6F100074858 /* VertigoSampleTests.m */,
99A9FE451802D6F100074858 /* Supporting Files */,
);
path = VertigoSampleTests;
sourceTree = "";
};
99A9FE451802D6F100074858 /* Supporting Files */ = {
isa = PBXGroup;
children = (
99A9FE461802D6F100074858 /* VertigoSampleTests-Info.plist */,
99A9FE471802D6F100074858 /* InfoPlist.strings */,
);
name = "Supporting Files";
sourceTree = "";
};
99A9FE601802D76700074858 /* Vertigo */ = {
isa = PBXGroup;
children = (
99A9FE611802D76800074858 /* TGRImageViewController.h */,
99A9FE621802D76800074858 /* TGRImageViewController.m */,
99A9FE631802D76800074858 /* TGRImageViewController.xib */,
99A9FE641802D76800074858 /* TGRImageZoomAnimationController.h */,
99A9FE651802D76800074858 /* TGRImageZoomAnimationController.m */,
99A9FE661802D76800074858 /* UIImage+AspectFit.h */,
99A9FE671802D76800074858 /* UIImage+AspectFit.m */,
);
name = Vertigo;
path = ../Vertigo;
sourceTree = "";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
99A9FE1B1802D6F100074858 /* VertigoSample */ = {
isa = PBXNativeTarget;
buildConfigurationList = 99A9FE4E1802D6F100074858 /* Build configuration list for PBXNativeTarget "VertigoSample" */;
buildPhases = (
99A9FE181802D6F100074858 /* Sources */,
99A9FE191802D6F100074858 /* Frameworks */,
99A9FE1A1802D6F100074858 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = VertigoSample;
productName = VertigoSample;
productReference = 99A9FE1C1802D6F100074858 /* VertigoSample.app */;
productType = "com.apple.product-type.application";
};
99A9FE3C1802D6F100074858 /* VertigoSampleTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 99A9FE511802D6F100074858 /* Build configuration list for PBXNativeTarget "VertigoSampleTests" */;
buildPhases = (
99A9FE391802D6F100074858 /* Sources */,
99A9FE3A1802D6F100074858 /* Frameworks */,
99A9FE3B1802D6F100074858 /* Resources */,
);
buildRules = (
);
dependencies = (
99A9FE431802D6F100074858 /* PBXTargetDependency */,
);
name = VertigoSampleTests;
productName = VertigoSampleTests;
productReference = 99A9FE3D1802D6F100074858 /* VertigoSampleTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
99A9FE141802D6F100074858 /* Project object */ = {
isa = PBXProject;
attributes = {
CLASSPREFIX = TGR;
LastUpgradeCheck = 0500;
ORGANIZATIONNAME = "Guillermo Gonzalez";
TargetAttributes = {
99A9FE3C1802D6F100074858 = {
TestTargetID = 99A9FE1B1802D6F100074858;
};
};
};
buildConfigurationList = 99A9FE171802D6F100074858 /* Build configuration list for PBXProject "VertigoSample" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 99A9FE131802D6F100074858;
productRefGroup = 99A9FE1D1802D6F100074858 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
99A9FE1B1802D6F100074858 /* VertigoSample */,
99A9FE3C1802D6F100074858 /* VertigoSampleTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
99A9FE1A1802D6F100074858 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
99A9FE381802D6F100074858 /* Images.xcassets in Resources */,
99A9FE2A1802D6F100074858 /* InfoPlist.strings in Resources */,
99A9FE691802D76800074858 /* TGRImageViewController.xib in Resources */,
99A9FE331802D6F100074858 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
99A9FE3B1802D6F100074858 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
99A9FE491802D6F100074858 /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
99A9FE181802D6F100074858 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
99A9FE6A1802D76800074858 /* TGRImageZoomAnimationController.m in Sources */,
99A9FE301802D6F100074858 /* TGRAppDelegate.m in Sources */,
99A9FE2C1802D6F100074858 /* main.m in Sources */,
99A9FE6B1802D76800074858 /* UIImage+AspectFit.m in Sources */,
99A9FE681802D76800074858 /* TGRImageViewController.m in Sources */,
99A9FE361802D6F100074858 /* TGRViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
99A9FE391802D6F100074858 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
99A9FE4B1802D6F100074858 /* VertigoSampleTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
99A9FE431802D6F100074858 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 99A9FE1B1802D6F100074858 /* VertigoSample */;
targetProxy = 99A9FE421802D6F100074858 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
99A9FE281802D6F100074858 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
99A9FE291802D6F100074858 /* en */,
);
name = InfoPlist.strings;
sourceTree = "";
};
99A9FE311802D6F100074858 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
99A9FE321802D6F100074858 /* Base */,
);
name = Main.storyboard;
sourceTree = "";
};
99A9FE471802D6F100074858 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
99A9FE481802D6F100074858 /* en */,
);
name = InfoPlist.strings;
sourceTree = "";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
99A9FE4C1802D6F100074858 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
};
99A9FE4D1802D6F100074858 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
99A9FE4F1802D6F100074858 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VertigoSample/VertigoSample-Prefix.pch";
INFOPLIST_FILE = "VertigoSample/VertigoSample-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
99A9FE501802D6F100074858 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VertigoSample/VertigoSample-Prefix.pch";
INFOPLIST_FILE = "VertigoSample/VertigoSample-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Release;
};
99A9FE521802D6F100074858 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/VertigoSample.app/VertigoSample";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VertigoSample/VertigoSample-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = "VertigoSampleTests/VertigoSampleTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
};
name = Debug;
};
99A9FE531802D6F100074858 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/VertigoSample.app/VertigoSample";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VertigoSample/VertigoSample-Prefix.pch";
INFOPLIST_FILE = "VertigoSampleTests/VertigoSampleTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
99A9FE171802D6F100074858 /* Build configuration list for PBXProject "VertigoSample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
99A9FE4C1802D6F100074858 /* Debug */,
99A9FE4D1802D6F100074858 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
99A9FE4E1802D6F100074858 /* Build configuration list for PBXNativeTarget "VertigoSample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
99A9FE4F1802D6F100074858 /* Debug */,
99A9FE501802D6F100074858 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
99A9FE511802D6F100074858 /* Build configuration list for PBXNativeTarget "VertigoSampleTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
99A9FE521802D6F100074858 /* Debug */,
99A9FE531802D6F100074858 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 99A9FE141802D6F100074858 /* Project object */;
}
================================================
FILE: VertigoSample/VertigoSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
================================================
FILE: VertigoSample/VertigoSampleTests/VertigoSampleTests-Info.plist
================================================
CFBundleDevelopmentRegionenCFBundleExecutable${EXECUTABLE_NAME}CFBundleIdentifiercom.gonzalezreal.${PRODUCT_NAME:rfc1034identifier}CFBundleInfoDictionaryVersion6.0CFBundlePackageTypeBNDLCFBundleShortVersionString1.0CFBundleSignature????CFBundleVersion1
================================================
FILE: VertigoSample/VertigoSampleTests/VertigoSampleTests.m
================================================
//
// VertigoSampleTests.m
// VertigoSampleTests
//
// Created by guille on 07/10/13.
// Copyright (c) 2013 Guillermo Gonzalez. All rights reserved.
//
#import
@interface VertigoSampleTests : XCTestCase
@end
@implementation VertigoSampleTests
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample
{
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
}
@end
================================================
FILE: VertigoSample/VertigoSampleTests/en.lproj/InfoPlist.strings
================================================
/* Localized versions of Info.plist keys */