├── README.md
├── EvernoteAnimation.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── wangxuesen.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
├── xcuserdata
│ └── wangxuesen.xcuserdatad
│ │ ├── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── EvernoteAnimation.xcscheme
│ │ └── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
└── project.pbxproj
└── EvernoteAnimation
├── codes
├── EvernoteCollectionController.h
├── EvernoteCollectionCell.h
├── EvernoteDetailController.h
├── EvernoteFlowLayout.h
├── EvernoteDetailController.m
├── EvernoteCollectionCell.m
├── EvernoteTransition.h
├── EvernoteFlowLayout.m
├── EvernoteCollectionController.m
└── EvernoteTransition.m
├── AppDelegate.h
├── main.m
├── Assets.xcassets
└── AppIcon.appiconset
│ └── Contents.json
├── Info.plist
├── Base.lproj
├── LaunchScreen.storyboard
└── Main.storyboard
└── AppDelegate.m
/README.md:
--------------------------------------------------------------------------------
1 | # EvernoteAnimation
2 | Reproduce Evernote animation with OC
3 |
4 |
5 | thanks for https://github.com/allsome/LSYEvernote With Swift code and ideas
6 | # Gif:
7 | 
8 |
--------------------------------------------------------------------------------
/EvernoteAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/EvernoteAnimation.xcodeproj/project.xcworkspace/xcuserdata/wangxuesen.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imwangxuesen/EvernoteAnimation/HEAD/EvernoteAnimation.xcodeproj/project.xcworkspace/xcuserdata/wangxuesen.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteCollectionController.h:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteCollectionController.h
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface EvernoteCollectionController : UICollectionViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/EvernoteAnimation/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/EvernoteAnimation/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteCollectionCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteCollectionCell.h
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface EvernoteCollectionCell : UICollectionViewCell
12 |
13 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *titileLeadingCons;
14 | @property (nonatomic , strong) NSLayoutConstraint * horizonallyCons;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteDetailController.h:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteDetailController.h
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import
10 | @protocol EvernoteDetailControllerDelegate
11 |
12 | - (void)detailGoBack;
13 |
14 | @end
15 |
16 | @interface EvernoteDetailController : UIViewController
17 |
18 | @property (nonatomic ,weak) iddelegate;
19 | @end
20 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteFlowLayout.h:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteFlowLayout.h
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import
10 | #define ScreenW [[UIScreen mainScreen] bounds].size.width
11 | #define ScreenH [[UIScreen mainScreen] bounds].size.height
12 |
13 | #define PaddingH 10
14 | #define PaddingV 10
15 |
16 | #define ItemW ScreenW - 2*PaddingH
17 | #define ItemH 45
18 |
19 | #define SpringFactor 10
20 | @interface EvernoteFlowLayout : UICollectionViewFlowLayout
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/EvernoteAnimation.xcodeproj/xcuserdata/wangxuesen.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | EvernoteAnimation.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 4CA330291D372CF300FC3E09
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteDetailController.m:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteDetailController.m
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import "EvernoteDetailController.h"
10 |
11 | @interface EvernoteDetailController()
12 |
13 | @property (strong, nonatomic) UIView *backGroundView;
14 |
15 |
16 |
17 | @end
18 |
19 | @implementation EvernoteDetailController
20 |
21 | - (void)viewDidLoad {
22 | [super viewDidLoad];
23 |
24 | [self.view setBackgroundColor:[UIColor grayColor]];
25 | self.backGroundView.layer.masksToBounds = YES;
26 | self.backGroundView.layer.cornerRadius = 7;
27 | self.backGroundView.userInteractionEnabled = YES;
28 |
29 |
30 | }
31 |
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteCollectionCell.m:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteCollectionCell.m
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import "EvernoteCollectionCell.h"
10 |
11 | @implementation EvernoteCollectionCell
12 |
13 |
14 |
15 | - (instancetype)initWithFrame:(CGRect)frame
16 | {
17 | self = [super initWithFrame:frame];
18 | if (self) {
19 | [self setBackgroundColor:[UIColor whiteColor]];
20 | self.layer.masksToBounds = YES;
21 |
22 | self.layer.cornerRadius = 7;
23 | }
24 | return self;
25 | }
26 |
27 |
28 |
29 |
30 | - (instancetype)initWithCoder:(NSCoder *)coder
31 | {
32 | self = [super initWithCoder:coder];
33 | if (self) {
34 | [self setBackgroundColor:[UIColor whiteColor]];
35 | self.layer.masksToBounds = YES;
36 | self.layer.cornerRadius = 7;
37 | }
38 | return self;
39 | }
40 |
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/EvernoteAnimation.xcodeproj/xcuserdata/wangxuesen.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
14 |
15 |
16 |
18 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteTransition.h:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteTransition.h
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 | #import "EvernoteDetailController.h"
12 | #import "EvernoteCollectionCell.h"
13 | @interface EvernoteTransition : NSObject
14 |
15 | @property (nonatomic , assign) BOOL isPresent;
16 |
17 | @property (nonatomic , strong) EvernoteCollectionCell * selectCell;
18 |
19 | @property (nonatomic , strong) NSArray * visibleCells;
20 |
21 | @property (nonatomic , assign) CGRect originFrame;
22 |
23 | @property (nonatomic , assign) CGRect finalFrame;
24 |
25 | @property (nonatomic , strong) UIViewController * panViewController;
26 |
27 | @property (nonatomic , strong) UIViewController * listViewController;
28 |
29 | @property (nonatomic , strong) UIPercentDrivenInteractiveTransition * interactionController;
30 | - (void)evernoteTransitionWithSelectCell:(EvernoteCollectionCell *)selectCell visibleCells:(NSArray *)visibleCells originFrame:(CGRect)originFrame finalFrame:(CGRect)finalFrame panViewController:(UIViewController *)panVC listViewController:(UIViewController *)listVC;
31 |
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/EvernoteAnimation/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "83.5x83.5",
66 | "scale" : "2x"
67 | }
68 | ],
69 | "info" : {
70 | "version" : 1,
71 | "author" : "xcode"
72 | }
73 | }
--------------------------------------------------------------------------------
/EvernoteAnimation/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/EvernoteAnimation/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteFlowLayout.m:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteFlowLayout.m
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import "EvernoteFlowLayout.h"
10 |
11 | @implementation EvernoteFlowLayout
12 |
13 |
14 | - (instancetype)init
15 | {
16 | self = [super init];
17 | if (self) {
18 | self.itemSize = CGSizeMake(ItemW, ItemH);
19 | self.headerReferenceSize = CGSizeMake(ScreenW, PaddingV);
20 | }
21 | return self;
22 | }
23 |
24 | - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds {
25 | return YES;
26 | }
27 |
28 | - (nullable NSArray<__kindof UICollectionViewLayoutAttributes *> *)layoutAttributesForElementsInRect:(CGRect)rect {
29 | CGFloat offsetY = self.collectionView.contentOffset.y;
30 | NSArray * attrArray = [super layoutAttributesForElementsInRect:rect];
31 | CGFloat collectionViewFrameHeight = self.collectionView.frame.size.height;
32 | CGFloat collectionViewContentHeight = self.collectionView.contentSize.height;
33 | CGFloat ScrollViewContentInsetBottom = self.collectionView.contentInset.bottom;
34 | CGFloat bottomOffset = offsetY + collectionViewFrameHeight - collectionViewContentHeight - ScrollViewContentInsetBottom;
35 | NSInteger numOfItems = self.collectionView.numberOfSections;
36 |
37 | for (UICollectionViewLayoutAttributes * attr in attrArray) {
38 | if (attr.representedElementCategory == UICollectionElementCategoryCell) {
39 | CGRect cellRect = attr.frame;
40 | if (offsetY <= 0) {
41 | CGFloat distance = fabs(offsetY)/SpringFactor;
42 | cellRect.origin.y += offsetY + distance * (attr.indexPath.section + 1);
43 |
44 | } else if (bottomOffset > 0) {
45 | CGFloat distance = bottomOffset/SpringFactor;
46 | cellRect.origin.y += bottomOffset - distance * (numOfItems - attr.indexPath.section);
47 | }
48 | attr.frame = cellRect;
49 | }
50 | }
51 | return attrArray;
52 |
53 | }
54 |
55 | @end
56 |
--------------------------------------------------------------------------------
/EvernoteAnimation/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 | #import "EvernoteCollectionController.h"
11 | #import "EvernoteFlowLayout.h"
12 | #import "EvernoteDetailController.h"
13 |
14 | @interface AppDelegate ()
15 |
16 | @end
17 |
18 | @implementation AppDelegate
19 |
20 |
21 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
22 | // Override point for customization after application launch.
23 |
24 | EvernoteCollectionController * evernote = [[EvernoteCollectionController alloc] initWithCollectionViewLayout:[[EvernoteFlowLayout alloc] init]];
25 | self.window.rootViewController = evernote;
26 |
27 | return YES;
28 | }
29 |
30 | - (void)applicationWillResignActive:(UIApplication *)application {
31 | // 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.
32 | // 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.
33 | }
34 |
35 | - (void)applicationDidEnterBackground:(UIApplication *)application {
36 | // 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.
37 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
38 | }
39 |
40 | - (void)applicationWillEnterForeground:(UIApplication *)application {
41 | // 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.
42 | }
43 |
44 | - (void)applicationDidBecomeActive:(UIApplication *)application {
45 | // 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.
46 | }
47 |
48 | - (void)applicationWillTerminate:(UIApplication *)application {
49 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
50 | }
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteCollectionController.m:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteCollectionController.m
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import "EvernoteCollectionController.h"
10 | #import "EvernoteDetailController.h"
11 | #import "EvernoteCollectionCell.h"
12 | #import "EvernoteFlowLayout.h"
13 | #import "EvernoteTransition.h"
14 |
15 | @interface EvernoteCollectionController()
16 |
17 | @property (nonatomic , strong) NSMutableArray * dataSource;
18 |
19 | @property (nonatomic , strong) EvernoteTransition * transition;
20 |
21 | @end
22 |
23 | @implementation EvernoteCollectionController
24 |
25 |
26 | - (void)viewDidLoad {
27 | [super viewDidLoad];
28 | self.collectionView.backgroundColor = [UIColor grayColor];
29 | self.collectionView.collectionViewLayout = [[EvernoteFlowLayout alloc] init];
30 |
31 | [self.collectionView registerClass:[EvernoteCollectionCell class] forCellWithReuseIdentifier:NSStringFromClass([EvernoteCollectionCell class])];
32 |
33 | }
34 |
35 |
36 | - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
37 |
38 | return self.dataSource.count;
39 | }
40 |
41 |
42 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
43 |
44 | return 1;
45 |
46 | }
47 |
48 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
49 | // UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([EvernoteCollectionCell class]) forIndexPath:indexPath];
50 | // cell.backgroundColor = [UIColor purpleColor];
51 | EvernoteCollectionCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([EvernoteCollectionCell class]) forIndexPath:indexPath];
52 | cell.tag = indexPath.section;
53 |
54 | return cell;
55 | }
56 |
57 |
58 | - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
59 | EvernoteCollectionCell * selectedCell = (EvernoteCollectionCell *)[collectionView cellForItemAtIndexPath:indexPath];
60 | NSArray * visibleCells = collectionView.visibleCells;
61 | UIStoryboard * stb = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
62 | EvernoteDetailController * VC = [stb instantiateViewControllerWithIdentifier:@"EvernoteDetailController"];
63 | CGRect finalFrame = CGRectMake(10, collectionView.contentOffset.y + 30, ScreenW- 20, ScreenH - 40);
64 | [self.transition evernoteTransitionWithSelectCell:selectedCell visibleCells:visibleCells originFrame:selectedCell.frame finalFrame:finalFrame panViewController:VC listViewController:self];
65 | VC.transitioningDelegate = self.transition;
66 | VC.delegate = self.transition;
67 | [self presentViewController:VC animated:YES completion:^{
68 |
69 | }];
70 |
71 | }
72 |
73 | #pragma mark - getter
74 | - (NSMutableArray *)dataSource {
75 | if (!_dataSource) {
76 | _dataSource = [[NSMutableArray alloc] init];
77 | for (int i = 0; i< 20; i++) {
78 | [_dataSource addObject:[NSString stringWithFormat:@"Evernote%d",i]];
79 | }
80 | }
81 | return _dataSource;
82 | }
83 |
84 | - (EvernoteTransition *)transition {
85 | if (!_transition) {
86 | _transition = [[EvernoteTransition alloc] init];
87 | }
88 | return _transition;
89 | }
90 | @end
91 |
--------------------------------------------------------------------------------
/EvernoteAnimation.xcodeproj/xcuserdata/wangxuesen.xcuserdatad/xcschemes/EvernoteAnimation.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/EvernoteAnimation/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/EvernoteAnimation/codes/EvernoteTransition.m:
--------------------------------------------------------------------------------
1 | //
2 | // EvernoteTransition.m
3 | // EvernoteAnimation
4 | //
5 | // Created by WangXuesen on 16/7/14.
6 | // Copyright © 2016年 Jsen. All rights reserved.
7 | //
8 |
9 | #import "EvernoteTransition.h"
10 |
11 | @interface EvernoteTransition()
12 |
13 |
14 | @end
15 |
16 |
17 | @implementation EvernoteTransition
18 |
19 |
20 | - (void)evernoteTransitionWithSelectCell:(EvernoteCollectionCell *)selectCell visibleCells:(NSArray *)visibleCells originFrame:(CGRect)originFrame finalFrame:(CGRect)finalFrame panViewController:(UIViewController *)panVC listViewController:(UIViewController *)listVC {
21 | self.selectCell = selectCell;
22 | self.visibleCells = visibleCells;
23 | self.originFrame = originFrame;
24 | self.finalFrame = finalFrame;
25 | self.panViewController = panVC;
26 | self.listViewController = listVC;
27 | UIScreenEdgePanGestureRecognizer * edgPanGR = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanGesture:)];
28 | edgPanGR.edges = UIRectEdgeLeft;
29 | [self.panViewController.view addGestureRecognizer:edgPanGR];
30 |
31 | }
32 |
33 |
34 | #pragma mark - UIViewControllerAnimatedTransitioning
35 |
36 | - (NSTimeInterval)transitionDuration:(nullable id )transitionContext{
37 | return 0.45;
38 | }
39 |
40 | - (void)animateTransition:(id )transitionContext {
41 | UIViewController * nextVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
42 | [[transitionContext containerView] setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
43 | self.selectCell.frame = _isPresent? self.originFrame : self.finalFrame;
44 | UIView * addView = nextVC.view;
45 | addView.hidden = _isPresent? true : false;
46 | [[transitionContext containerView] addSubview:addView];
47 | [UIView animateWithDuration:[self transitionDuration:transitionContext] delay:0.0 options:UIViewAnimationOptionCurveEaseOut animations:^{
48 | for (EvernoteCollectionCell * visibleCell in self.visibleCells) {
49 | if (visibleCell != self.selectCell) {
50 | CGRect frame = visibleCell.frame;
51 | if (visibleCell.tag < self.selectCell.tag) {
52 | CGFloat yDistance = self.originFrame.origin.y - self.finalFrame.origin.y + 30;
53 | CGFloat yUpdate = self.isPresent ? yDistance: -yDistance;
54 | frame.origin.y -= yUpdate;
55 | } else if(visibleCell.tag > self.selectCell.tag) {
56 | CGFloat yDistance = CGRectGetMaxY(self.finalFrame) - CGRectGetMaxY(self.originFrame) + 30;
57 | CGFloat yUpdate = self.isPresent? yDistance : -yDistance;
58 | frame.origin.y += yUpdate;
59 | }
60 | visibleCell.frame = frame;
61 | visibleCell.transform = self.isPresent ? CGAffineTransformMakeScale(0.8, 1.0) : CGAffineTransformIdentity;
62 | }
63 | }
64 |
65 | self.selectCell.frame = self.isPresent ? self.finalFrame : self.originFrame;
66 | [self.selectCell layoutIfNeeded];
67 |
68 | } completion:^(BOOL finished) {
69 | addView.hidden = false;
70 | [transitionContext completeTransition:YES];
71 | }];
72 |
73 | }
74 |
75 |
76 | #pragma mark - UIViewControllerTransitioningDelegate
77 | - (nullable id )animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source {
78 | self.isPresent = YES;
79 | return self;
80 |
81 | }
82 |
83 |
84 | - (nullable id )animationControllerForDismissedController:(UIViewController *)dismissed {
85 | self.isPresent = NO;
86 | return self;
87 | }
88 |
89 | - (nullable id )interactionControllerForDismissal:(id )animator {
90 | return self.interactionController;
91 | }
92 |
93 | - (void)handlePanGesture:(UIScreenEdgePanGestureRecognizer*)recognizer {
94 | UIView * view = self.panViewController.view;
95 | if (recognizer.state == UIGestureRecognizerStateBegan) {
96 | [self.panViewController dismissViewControllerAnimated:YES completion:^{
97 |
98 | }];
99 | } else if (recognizer.state == UIGestureRecognizerStateChanged) {
100 | CGPoint translation = [recognizer translationInView:view];
101 | NSInteger d = fabs(translation.x / CGRectGetWidth(view.bounds));
102 | [self.interactionController updateInteractiveTransition:d];
103 | } else if (recognizer.state == UIGestureRecognizerStateEnded) {
104 | if ([recognizer velocityInView:view].x > 0) {
105 | [self finishInteractive];
106 | } else {
107 | [self.interactionController cancelInteractiveTransition];
108 | [self.listViewController presentViewController:self.panViewController animated:NO completion:^{
109 |
110 | }];
111 | }
112 | self.interactionController = [[UIPercentDrivenInteractiveTransition alloc] init];
113 | }
114 |
115 | }
116 | #pragma mark - EvernoteDetailControllerDelegate
117 | - (void)detailGoBack {
118 |
119 | }
120 |
121 | - (void)finishInteractive {
122 | [self.interactionController finishInteractiveTransition];
123 | }
124 |
125 | @end
126 |
--------------------------------------------------------------------------------
/EvernoteAnimation.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 4CA3302F1D372CF300FC3E09 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CA3302E1D372CF300FC3E09 /* main.m */; };
11 | 4CA330321D372CF300FC3E09 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CA330311D372CF300FC3E09 /* AppDelegate.m */; };
12 | 4CA330381D372CF300FC3E09 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4CA330361D372CF300FC3E09 /* Main.storyboard */; };
13 | 4CA3303A1D372CF300FC3E09 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4CA330391D372CF300FC3E09 /* Assets.xcassets */; };
14 | 4CA3303D1D372CF300FC3E09 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4CA3303B1D372CF300FC3E09 /* LaunchScreen.storyboard */; };
15 | 4CA330471D372DCC00FC3E09 /* EvernoteCollectionController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CA330461D372DCC00FC3E09 /* EvernoteCollectionController.m */; };
16 | 4CA3304A1D3731AF00FC3E09 /* EvernoteCollectionCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CA330491D3731AF00FC3E09 /* EvernoteCollectionCell.m */; };
17 | 4CA330501D37324100FC3E09 /* EvernoteTransition.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CA3304F1D37324100FC3E09 /* EvernoteTransition.m */; };
18 | 4CA330531D3739A900FC3E09 /* EvernoteFlowLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CA330521D3739A900FC3E09 /* EvernoteFlowLayout.m */; };
19 | 4CA330561D374BF000FC3E09 /* EvernoteDetailController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CA330551D374BF000FC3E09 /* EvernoteDetailController.m */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXFileReference section */
23 | 4CA3302A1D372CF300FC3E09 /* EvernoteAnimation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EvernoteAnimation.app; sourceTree = BUILT_PRODUCTS_DIR; };
24 | 4CA3302E1D372CF300FC3E09 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
25 | 4CA330301D372CF300FC3E09 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
26 | 4CA330311D372CF300FC3E09 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
27 | 4CA330371D372CF300FC3E09 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
28 | 4CA330391D372CF300FC3E09 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
29 | 4CA3303C1D372CF300FC3E09 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
30 | 4CA3303E1D372CF300FC3E09 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
31 | 4CA330451D372DCC00FC3E09 /* EvernoteCollectionController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EvernoteCollectionController.h; sourceTree = ""; };
32 | 4CA330461D372DCC00FC3E09 /* EvernoteCollectionController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EvernoteCollectionController.m; sourceTree = ""; };
33 | 4CA330481D3731AF00FC3E09 /* EvernoteCollectionCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EvernoteCollectionCell.h; sourceTree = ""; };
34 | 4CA330491D3731AF00FC3E09 /* EvernoteCollectionCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EvernoteCollectionCell.m; sourceTree = ""; };
35 | 4CA3304E1D37324100FC3E09 /* EvernoteTransition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EvernoteTransition.h; sourceTree = ""; };
36 | 4CA3304F1D37324100FC3E09 /* EvernoteTransition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EvernoteTransition.m; sourceTree = ""; };
37 | 4CA330511D3739A900FC3E09 /* EvernoteFlowLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EvernoteFlowLayout.h; sourceTree = ""; };
38 | 4CA330521D3739A900FC3E09 /* EvernoteFlowLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EvernoteFlowLayout.m; sourceTree = ""; };
39 | 4CA330541D374BF000FC3E09 /* EvernoteDetailController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EvernoteDetailController.h; sourceTree = ""; };
40 | 4CA330551D374BF000FC3E09 /* EvernoteDetailController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EvernoteDetailController.m; sourceTree = ""; };
41 | /* End PBXFileReference section */
42 |
43 | /* Begin PBXFrameworksBuildPhase section */
44 | 4CA330271D372CF300FC3E09 /* Frameworks */ = {
45 | isa = PBXFrameworksBuildPhase;
46 | buildActionMask = 2147483647;
47 | files = (
48 | );
49 | runOnlyForDeploymentPostprocessing = 0;
50 | };
51 | /* End PBXFrameworksBuildPhase section */
52 |
53 | /* Begin PBXGroup section */
54 | 4CA330211D372CF300FC3E09 = {
55 | isa = PBXGroup;
56 | children = (
57 | 4CA3302C1D372CF300FC3E09 /* EvernoteAnimation */,
58 | 4CA3302B1D372CF300FC3E09 /* Products */,
59 | );
60 | sourceTree = "";
61 | };
62 | 4CA3302B1D372CF300FC3E09 /* Products */ = {
63 | isa = PBXGroup;
64 | children = (
65 | 4CA3302A1D372CF300FC3E09 /* EvernoteAnimation.app */,
66 | );
67 | name = Products;
68 | sourceTree = "";
69 | };
70 | 4CA3302C1D372CF300FC3E09 /* EvernoteAnimation */ = {
71 | isa = PBXGroup;
72 | children = (
73 | 4CA330441D372D8700FC3E09 /* codes */,
74 | 4CA330301D372CF300FC3E09 /* AppDelegate.h */,
75 | 4CA330311D372CF300FC3E09 /* AppDelegate.m */,
76 | 4CA330361D372CF300FC3E09 /* Main.storyboard */,
77 | 4CA330391D372CF300FC3E09 /* Assets.xcassets */,
78 | 4CA3303B1D372CF300FC3E09 /* LaunchScreen.storyboard */,
79 | 4CA3303E1D372CF300FC3E09 /* Info.plist */,
80 | 4CA3302D1D372CF300FC3E09 /* Supporting Files */,
81 | );
82 | path = EvernoteAnimation;
83 | sourceTree = "";
84 | };
85 | 4CA3302D1D372CF300FC3E09 /* Supporting Files */ = {
86 | isa = PBXGroup;
87 | children = (
88 | 4CA3302E1D372CF300FC3E09 /* main.m */,
89 | );
90 | name = "Supporting Files";
91 | sourceTree = "";
92 | };
93 | 4CA330441D372D8700FC3E09 /* codes */ = {
94 | isa = PBXGroup;
95 | children = (
96 | 4CA330451D372DCC00FC3E09 /* EvernoteCollectionController.h */,
97 | 4CA330461D372DCC00FC3E09 /* EvernoteCollectionController.m */,
98 | 4CA330481D3731AF00FC3E09 /* EvernoteCollectionCell.h */,
99 | 4CA330491D3731AF00FC3E09 /* EvernoteCollectionCell.m */,
100 | 4CA3304E1D37324100FC3E09 /* EvernoteTransition.h */,
101 | 4CA3304F1D37324100FC3E09 /* EvernoteTransition.m */,
102 | 4CA330511D3739A900FC3E09 /* EvernoteFlowLayout.h */,
103 | 4CA330521D3739A900FC3E09 /* EvernoteFlowLayout.m */,
104 | 4CA330541D374BF000FC3E09 /* EvernoteDetailController.h */,
105 | 4CA330551D374BF000FC3E09 /* EvernoteDetailController.m */,
106 | );
107 | path = codes;
108 | sourceTree = "";
109 | };
110 | /* End PBXGroup section */
111 |
112 | /* Begin PBXNativeTarget section */
113 | 4CA330291D372CF300FC3E09 /* EvernoteAnimation */ = {
114 | isa = PBXNativeTarget;
115 | buildConfigurationList = 4CA330411D372CF300FC3E09 /* Build configuration list for PBXNativeTarget "EvernoteAnimation" */;
116 | buildPhases = (
117 | 4CA330261D372CF300FC3E09 /* Sources */,
118 | 4CA330271D372CF300FC3E09 /* Frameworks */,
119 | 4CA330281D372CF300FC3E09 /* Resources */,
120 | );
121 | buildRules = (
122 | );
123 | dependencies = (
124 | );
125 | name = EvernoteAnimation;
126 | productName = EvernoteAnimation;
127 | productReference = 4CA3302A1D372CF300FC3E09 /* EvernoteAnimation.app */;
128 | productType = "com.apple.product-type.application";
129 | };
130 | /* End PBXNativeTarget section */
131 |
132 | /* Begin PBXProject section */
133 | 4CA330221D372CF300FC3E09 /* Project object */ = {
134 | isa = PBXProject;
135 | attributes = {
136 | LastUpgradeCheck = 0730;
137 | ORGANIZATIONNAME = Jsen;
138 | TargetAttributes = {
139 | 4CA330291D372CF300FC3E09 = {
140 | CreatedOnToolsVersion = 7.3.1;
141 | DevelopmentTeam = E9DZXL3SNJ;
142 | };
143 | };
144 | };
145 | buildConfigurationList = 4CA330251D372CF300FC3E09 /* Build configuration list for PBXProject "EvernoteAnimation" */;
146 | compatibilityVersion = "Xcode 3.2";
147 | developmentRegion = English;
148 | hasScannedForEncodings = 0;
149 | knownRegions = (
150 | en,
151 | Base,
152 | );
153 | mainGroup = 4CA330211D372CF300FC3E09;
154 | productRefGroup = 4CA3302B1D372CF300FC3E09 /* Products */;
155 | projectDirPath = "";
156 | projectRoot = "";
157 | targets = (
158 | 4CA330291D372CF300FC3E09 /* EvernoteAnimation */,
159 | );
160 | };
161 | /* End PBXProject section */
162 |
163 | /* Begin PBXResourcesBuildPhase section */
164 | 4CA330281D372CF300FC3E09 /* Resources */ = {
165 | isa = PBXResourcesBuildPhase;
166 | buildActionMask = 2147483647;
167 | files = (
168 | 4CA3303D1D372CF300FC3E09 /* LaunchScreen.storyboard in Resources */,
169 | 4CA3303A1D372CF300FC3E09 /* Assets.xcassets in Resources */,
170 | 4CA330381D372CF300FC3E09 /* Main.storyboard in Resources */,
171 | );
172 | runOnlyForDeploymentPostprocessing = 0;
173 | };
174 | /* End PBXResourcesBuildPhase section */
175 |
176 | /* Begin PBXSourcesBuildPhase section */
177 | 4CA330261D372CF300FC3E09 /* Sources */ = {
178 | isa = PBXSourcesBuildPhase;
179 | buildActionMask = 2147483647;
180 | files = (
181 | 4CA330321D372CF300FC3E09 /* AppDelegate.m in Sources */,
182 | 4CA3302F1D372CF300FC3E09 /* main.m in Sources */,
183 | 4CA330561D374BF000FC3E09 /* EvernoteDetailController.m in Sources */,
184 | 4CA330501D37324100FC3E09 /* EvernoteTransition.m in Sources */,
185 | 4CA330471D372DCC00FC3E09 /* EvernoteCollectionController.m in Sources */,
186 | 4CA3304A1D3731AF00FC3E09 /* EvernoteCollectionCell.m in Sources */,
187 | 4CA330531D3739A900FC3E09 /* EvernoteFlowLayout.m in Sources */,
188 | );
189 | runOnlyForDeploymentPostprocessing = 0;
190 | };
191 | /* End PBXSourcesBuildPhase section */
192 |
193 | /* Begin PBXVariantGroup section */
194 | 4CA330361D372CF300FC3E09 /* Main.storyboard */ = {
195 | isa = PBXVariantGroup;
196 | children = (
197 | 4CA330371D372CF300FC3E09 /* Base */,
198 | );
199 | name = Main.storyboard;
200 | sourceTree = "";
201 | };
202 | 4CA3303B1D372CF300FC3E09 /* LaunchScreen.storyboard */ = {
203 | isa = PBXVariantGroup;
204 | children = (
205 | 4CA3303C1D372CF300FC3E09 /* Base */,
206 | );
207 | name = LaunchScreen.storyboard;
208 | sourceTree = "";
209 | };
210 | /* End PBXVariantGroup section */
211 |
212 | /* Begin XCBuildConfiguration section */
213 | 4CA3303F1D372CF300FC3E09 /* Debug */ = {
214 | isa = XCBuildConfiguration;
215 | buildSettings = {
216 | ALWAYS_SEARCH_USER_PATHS = NO;
217 | CLANG_ANALYZER_NONNULL = YES;
218 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
219 | CLANG_CXX_LIBRARY = "libc++";
220 | CLANG_ENABLE_MODULES = YES;
221 | CLANG_ENABLE_OBJC_ARC = YES;
222 | CLANG_WARN_BOOL_CONVERSION = YES;
223 | CLANG_WARN_CONSTANT_CONVERSION = YES;
224 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
225 | CLANG_WARN_EMPTY_BODY = YES;
226 | CLANG_WARN_ENUM_CONVERSION = YES;
227 | CLANG_WARN_INT_CONVERSION = YES;
228 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
229 | CLANG_WARN_UNREACHABLE_CODE = YES;
230 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
231 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
232 | COPY_PHASE_STRIP = NO;
233 | DEBUG_INFORMATION_FORMAT = dwarf;
234 | ENABLE_STRICT_OBJC_MSGSEND = YES;
235 | ENABLE_TESTABILITY = YES;
236 | GCC_C_LANGUAGE_STANDARD = gnu99;
237 | GCC_DYNAMIC_NO_PIC = NO;
238 | GCC_NO_COMMON_BLOCKS = YES;
239 | GCC_OPTIMIZATION_LEVEL = 0;
240 | GCC_PREPROCESSOR_DEFINITIONS = (
241 | "DEBUG=1",
242 | "$(inherited)",
243 | );
244 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
245 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
246 | GCC_WARN_UNDECLARED_SELECTOR = YES;
247 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
248 | GCC_WARN_UNUSED_FUNCTION = YES;
249 | GCC_WARN_UNUSED_VARIABLE = YES;
250 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
251 | MTL_ENABLE_DEBUG_INFO = YES;
252 | ONLY_ACTIVE_ARCH = YES;
253 | SDKROOT = iphoneos;
254 | TARGETED_DEVICE_FAMILY = "1,2";
255 | };
256 | name = Debug;
257 | };
258 | 4CA330401D372CF300FC3E09 /* Release */ = {
259 | isa = XCBuildConfiguration;
260 | buildSettings = {
261 | ALWAYS_SEARCH_USER_PATHS = NO;
262 | CLANG_ANALYZER_NONNULL = YES;
263 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
264 | CLANG_CXX_LIBRARY = "libc++";
265 | CLANG_ENABLE_MODULES = YES;
266 | CLANG_ENABLE_OBJC_ARC = YES;
267 | CLANG_WARN_BOOL_CONVERSION = YES;
268 | CLANG_WARN_CONSTANT_CONVERSION = YES;
269 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
270 | CLANG_WARN_EMPTY_BODY = YES;
271 | CLANG_WARN_ENUM_CONVERSION = YES;
272 | CLANG_WARN_INT_CONVERSION = YES;
273 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
274 | CLANG_WARN_UNREACHABLE_CODE = YES;
275 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
276 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
277 | COPY_PHASE_STRIP = NO;
278 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
279 | ENABLE_NS_ASSERTIONS = NO;
280 | ENABLE_STRICT_OBJC_MSGSEND = YES;
281 | GCC_C_LANGUAGE_STANDARD = gnu99;
282 | GCC_NO_COMMON_BLOCKS = YES;
283 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
284 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
285 | GCC_WARN_UNDECLARED_SELECTOR = YES;
286 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
287 | GCC_WARN_UNUSED_FUNCTION = YES;
288 | GCC_WARN_UNUSED_VARIABLE = YES;
289 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
290 | MTL_ENABLE_DEBUG_INFO = NO;
291 | SDKROOT = iphoneos;
292 | TARGETED_DEVICE_FAMILY = "1,2";
293 | VALIDATE_PRODUCT = YES;
294 | };
295 | name = Release;
296 | };
297 | 4CA330421D372CF300FC3E09 /* Debug */ = {
298 | isa = XCBuildConfiguration;
299 | buildSettings = {
300 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
301 | CODE_SIGN_IDENTITY = "iPhone Developer";
302 | INFOPLIST_FILE = EvernoteAnimation/Info.plist;
303 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
304 | PRODUCT_BUNDLE_IDENTIFIER = Jsen.EvernoteAnimation;
305 | PRODUCT_NAME = "$(TARGET_NAME)";
306 | };
307 | name = Debug;
308 | };
309 | 4CA330431D372CF300FC3E09 /* Release */ = {
310 | isa = XCBuildConfiguration;
311 | buildSettings = {
312 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
313 | CODE_SIGN_IDENTITY = "iPhone Developer";
314 | INFOPLIST_FILE = EvernoteAnimation/Info.plist;
315 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
316 | PRODUCT_BUNDLE_IDENTIFIER = Jsen.EvernoteAnimation;
317 | PRODUCT_NAME = "$(TARGET_NAME)";
318 | };
319 | name = Release;
320 | };
321 | /* End XCBuildConfiguration section */
322 |
323 | /* Begin XCConfigurationList section */
324 | 4CA330251D372CF300FC3E09 /* Build configuration list for PBXProject "EvernoteAnimation" */ = {
325 | isa = XCConfigurationList;
326 | buildConfigurations = (
327 | 4CA3303F1D372CF300FC3E09 /* Debug */,
328 | 4CA330401D372CF300FC3E09 /* Release */,
329 | );
330 | defaultConfigurationIsVisible = 0;
331 | defaultConfigurationName = Release;
332 | };
333 | 4CA330411D372CF300FC3E09 /* Build configuration list for PBXNativeTarget "EvernoteAnimation" */ = {
334 | isa = XCConfigurationList;
335 | buildConfigurations = (
336 | 4CA330421D372CF300FC3E09 /* Debug */,
337 | 4CA330431D372CF300FC3E09 /* Release */,
338 | );
339 | defaultConfigurationIsVisible = 0;
340 | defaultConfigurationName = Release;
341 | };
342 | /* End XCConfigurationList section */
343 | };
344 | rootObject = 4CA330221D372CF300FC3E09 /* Project object */;
345 | }
346 |
--------------------------------------------------------------------------------