├── .gitignore ├── Classes ├── MHYahooParallaxCollectionViewLayout.h ├── MHYahooParallaxCollectionViewLayout.m ├── MHYahooParallaxView.h └── MHYahooParallaxView.m ├── LICENSE ├── MHYahooParallaxViewExample ├── MHYahooParallaxViewExample.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── MHYahooParallaxViewExample.xccheckout │ └── xcuserdata │ │ └── michaelhenrypantaleon.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ ├── MHYahooParallaxViewExample.xcscheme │ │ └── xcschememanagement.plist ├── MHYahooParallaxViewExample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── BRZ │ │ ├── subaru-0.jpg │ │ ├── subaru-1.jpg │ │ ├── subaru-2.jpg │ │ ├── subaru-3.jpg │ │ ├── subaru-4.jpg │ │ ├── subaru-5.jpg │ │ ├── subaru-6.jpg │ │ ├── subaru-7.jpg │ │ ├── subaru-8.jpg │ │ └── subaru-9.jpg │ ├── Base.lproj │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── logo-114.png │ │ │ ├── logo-120.png │ │ │ ├── logo-29.png │ │ │ ├── logo-57.png │ │ │ └── logo-80.png │ │ └── LaunchImage.launchimage │ │ │ ├── Contents.json │ │ │ ├── launch-image-1136.png │ │ │ └── logo-960.png │ ├── MHTsekotCell.h │ ├── MHTsekotCell.m │ ├── MHYahooParallaxViewExample-Info.plist │ ├── MHYahooParallaxViewExample-Prefix.pch │ ├── MHYahooWeatherParallaxCell.h │ ├── MHYahooWeatherParallaxCell.m │ ├── NATURE │ │ ├── 0.jpg │ │ ├── 1.jpg │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ └── 4.jpg │ ├── ViewController.h │ ├── ViewController.m │ ├── content-1.png │ ├── content-1@2x.png │ ├── content-2.png │ ├── content-2@2x.png │ ├── content-3.png │ ├── content-3@2x.png │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── header_bg.png │ ├── header_bg@2x.png │ └── main.m ├── MHYahooParallaxViewExampleTests │ ├── MHYahooParallaxViewExampleTests-Info.plist │ ├── MHYahooParallaxViewExampleTests.m │ └── en.lproj │ │ └── InfoPlist.strings ├── YahooWeatherExample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── ViewController.h │ ├── ViewController.m │ ├── YahooWeatherExample-Info.plist │ ├── YahooWeatherExample-Prefix.pch │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m └── YahooWeatherExampleTests │ ├── YahooWeatherExampleTests-Info.plist │ ├── YahooWeatherExampleTests.m │ └── en.lproj │ └── InfoPlist.strings └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # CocoaPods 2 | # 3 | # We recommend against adding the Pods directory to your .gitignore. However 4 | # you should judge for yourself, the pros and cons are mentioned at: 5 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control? 6 | # 7 | # Pods/ 8 | 9 | ######################### 10 | # .gitignore file for Xcode4 and Xcode5 Source projects 11 | # 12 | # Apple bugs, waiting for Apple to fix/respond: 13 | # 14 | # 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? 15 | # 16 | # Version 2.1 17 | # For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects 18 | # 19 | # 2013 updates: 20 | # - fixed the broken "save personal Schemes" 21 | # - added line-by-line explanations for EVERYTHING (some were missing) 22 | # 23 | # NB: if you are storing "built" products, this WILL NOT WORK, 24 | # and you should use a different .gitignore (or none at all) 25 | # This file is for SOURCE projects, where there are many extra 26 | # files that we want to exclude 27 | # 28 | ######################### 29 | 30 | ##### 31 | # OS X temporary files that should never be committed 32 | # 33 | # c.f. http://www.westwind.com/reference/os-x/invisibles.html 34 | 35 | .DS_Store 36 | 37 | # c.f. http://www.westwind.com/reference/os-x/invisibles.html 38 | 39 | .Trashes 40 | 41 | # c.f. http://www.westwind.com/reference/os-x/invisibles.html 42 | 43 | *.swp 44 | 45 | # *.lock - this is used and abused by many editors for many different things. 46 | # For the main ones I use (e.g. Eclipse), it should be excluded 47 | # from source-control, but YMMV 48 | 49 | *.lock 50 | 51 | # 52 | # profile - REMOVED temporarily (on double-checking, this seems incorrect; I can't find it in OS X docs?) 53 | #profile 54 | 55 | 56 | #### 57 | # Xcode temporary files that should never be committed 58 | # 59 | # NB: NIB/XIB files still exist even on Storyboard projects, so we want this... 60 | 61 | *~.nib 62 | 63 | 64 | #### 65 | # Xcode build files - 66 | # 67 | # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "DerivedData" 68 | 69 | DerivedData/ 70 | 71 | # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build" 72 | 73 | build/ 74 | 75 | 76 | ##### 77 | # Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups) 78 | # 79 | # This is complicated: 80 | # 81 | # SOMETIMES you need to put this file in version control. 82 | # Apple designed it poorly - if you use "custom executables", they are 83 | # saved in this file. 84 | # 99% of projects do NOT use those, so they do NOT want to version control this file. 85 | # ..but if you're in the 1%, comment out the line "*.pbxuser" 86 | 87 | # .pbxuser: http://lists.apple.com/archives/xcode-users/2004/Jan/msg00193.html 88 | 89 | *.pbxuser 90 | 91 | # .mode1v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html 92 | 93 | *.mode1v3 94 | 95 | # .mode2v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html 96 | 97 | *.mode2v3 98 | 99 | # .perspectivev3: http://stackoverflow.com/questions/5223297/xcode-projects-what-is-a-perspectivev3-file 100 | 101 | *.perspectivev3 102 | 103 | # NB: also, whitelist the default ones, some projects need to use these 104 | !default.pbxuser 105 | !default.mode1v3 106 | !default.mode2v3 107 | !default.perspectivev3 108 | 109 | 110 | #### 111 | # Xcode 4 - semi-personal settings 112 | # 113 | # 114 | # OPTION 1: --------------------------------- 115 | # throw away ALL personal settings (including custom schemes! 116 | # - unless they are "shared") 117 | # 118 | # NB: this is exclusive with OPTION 2 below 119 | xcuserdata 120 | 121 | # OPTION 2: --------------------------------- 122 | # get rid of ALL personal settings, but KEEP SOME OF THEM 123 | # - NB: you must manually uncomment the bits you want to keep 124 | # 125 | # NB: this *requires* git v1.8.2 or above; you may need to upgrade to latest OS X, 126 | # or manually install git over the top of the OS X version 127 | # NB: this is exclusive with OPTION 1 above 128 | # 129 | #xcuserdata/**/* 130 | 131 | # (requires option 2 above): Personal Schemes 132 | # 133 | #!xcuserdata/**/xcschemes/* 134 | 135 | #### 136 | # XCode 4 workspaces - more detailed 137 | # 138 | # Workspaces are important! They are a core feature of Xcode - don't exclude them :) 139 | # 140 | # Workspace layout is quite spammy. For reference: 141 | # 142 | # /(root)/ 143 | # /(project-name).xcodeproj/ 144 | # project.pbxproj 145 | # /project.xcworkspace/ 146 | # contents.xcworkspacedata 147 | # /xcuserdata/ 148 | # /(your name)/xcuserdatad/ 149 | # UserInterfaceState.xcuserstate 150 | # /xcsshareddata/ 151 | # /xcschemes/ 152 | # (shared scheme name).xcscheme 153 | # /xcuserdata/ 154 | # /(your name)/xcuserdatad/ 155 | # (private scheme).xcscheme 156 | # xcschememanagement.plist 157 | # 158 | # 159 | 160 | #### 161 | # Xcode 4 - Deprecated classes 162 | # 163 | # Allegedly, if you manually "deprecate" your classes, they get moved here. 164 | # 165 | # We're using source-control, so this is a "feature" that we do not want! 166 | 167 | *.moved-aside 168 | 169 | #### 170 | # Xcode 5 - VCS file 171 | # The data in this file not represent state of your project. 172 | # If you'll leave this file in git - you will have merge conflicts during 173 | # pull your cahnges to other's repo 174 | # 175 | *.xccheckout 176 | 177 | #### 178 | # UNKNOWN: recommended by others, but I can't discover what these files are 179 | # 180 | # ...none. Everything is now explained. -------------------------------------------------------------------------------- /Classes/MHYahooParallaxCollectionViewLayout.h: -------------------------------------------------------------------------------- 1 | // 2 | // MHYahooParallaxView 3 | // iamkel.net 4 | // 5 | // Created by Michael Henry Pantaleon on 18/07/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | // Version 1.0.1 9 | // 10 | // Permission is hereby granted, free of charge, to any person obtaining a copy 11 | // of this software and associated documentation files (the "Software"), to deal 12 | // in the Software without restriction, including without limitation the rights 13 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | // copies of the Software, and to permit persons to whom the Software is 15 | // furnished to do so, subject to the following conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be included in 18 | // all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 26 | // THE SOFTWARE. 27 | 28 | #import 29 | 30 | @interface MHYahooParallaxCollectionViewLayout : UICollectionViewLayout { 31 | CGSize _itemSize; 32 | } 33 | 34 | @property (nonatomic) CGFloat separatorWidth; 35 | @end 36 | -------------------------------------------------------------------------------- /Classes/MHYahooParallaxCollectionViewLayout.m: -------------------------------------------------------------------------------- 1 | // 2 | // MHYahooParallaxView 3 | // iamkel.net 4 | // 5 | // Created by Michael Henry Pantaleon on 18/07/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | // Version 1.0.1 9 | // 10 | // Permission is hereby granted, free of charge, to any person obtaining a copy 11 | // of this software and associated documentation files (the "Software"), to deal 12 | // in the Software without restriction, including without limitation the rights 13 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | // copies of the Software, and to permit persons to whom the Software is 15 | // furnished to do so, subject to the following conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be included in 18 | // all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 26 | // THE SOFTWARE. 27 | 28 | #import "MHYahooParallaxCollectionViewLayout.h" 29 | 30 | @implementation MHYahooParallaxCollectionViewLayout 31 | @synthesize separatorWidth = _separatorWidth; 32 | 33 | - (id) init{ 34 | self = [super init]; 35 | if(self) { 36 | _separatorWidth = 0; 37 | } 38 | return self; 39 | } 40 | - (void) prepareLayout { 41 | CGSize boundSize = self.collectionView.bounds.size; 42 | boundSize.width = boundSize.width - _separatorWidth; 43 | _itemSize = boundSize; 44 | 45 | } 46 | 47 | - (CGSize) collectionViewContentSize { 48 | NSInteger numberOfItems = [[self collectionView]numberOfItemsInSection:0]; 49 | CGSize cvSize = CGSizeMake((self.collectionView.bounds.size.width * numberOfItems) ,self.collectionView.bounds.size.height); 50 | return cvSize; 51 | } 52 | 53 | - (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath { 54 | UICollectionViewLayoutAttributes * attributes = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:indexPath]; 55 | attributes.size = _itemSize; 56 | attributes.center =CGPointMake((_separatorWidth * indexPath.row) + (indexPath.row * (self.collectionView.bounds.size.width - _separatorWidth)) + (self.collectionView.bounds.size.width - _separatorWidth)/2, self.collectionView.bounds.size.height/2); 57 | return attributes; 58 | } 59 | 60 | - (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect { 61 | NSMutableArray * attributes = [NSMutableArray array]; 62 | for (NSInteger i = 0,j = [[self collectionView]numberOfItemsInSection:0]; i < j;i ++){ 63 | NSIndexPath * indexPath = [NSIndexPath indexPathForItem:i inSection:0]; 64 | [attributes addObject:[self layoutAttributesForItemAtIndexPath:indexPath]]; 65 | } 66 | return attributes; 67 | } 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /Classes/MHYahooParallaxView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MHYahooParallaxView 3 | // iamkel.net 4 | // 5 | // Created by Michael Henry Pantaleon on 18/07/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | // Version 1.0.1 9 | // 10 | // Permission is hereby granted, free of charge, to any person obtaining a copy 11 | // of this software and associated documentation files (the "Software"), to deal 12 | // in the Software without restriction, including without limitation the rights 13 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | // copies of the Software, and to permit persons to whom the Software is 15 | // furnished to do so, subject to the following conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be included in 18 | // all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 26 | // THE SOFTWARE. 27 | 28 | #import 29 | 30 | @class MHYahooParallaxView; 31 | 32 | @protocol MHYahooParallaxViewDatasource 33 | 34 | @required 35 | 36 | - (NSInteger) numberOfRowsInParallaxView: (MHYahooParallaxView *)parallaxView; 37 | - (UICollectionViewCell*) parallaxView:(MHYahooParallaxView *)parallaxView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 38 | 39 | @end 40 | 41 | @protocol MHYahooParallaxViewDelegate 42 | 43 | @optional 44 | - (void) parallaxViewDidScrollHorizontally:(MHYahooParallaxView *)parallaxView leftIndex:(NSInteger) leftIndex leftImageLeftMargin:(CGFloat) leftImageLeftMargin leftImageWidth:(CGFloat)leftImageWidth rightIndex:(NSInteger)rightIndex rightImageLeftMargin:(CGFloat)rightImageLeftMargin rightImageWidth:(CGFloat) rightImageWidth; 45 | 46 | - (void) parallaxViewDidScrollVertically:(MHYahooParallaxView *)parallaxView topIndex:(NSInteger) topIndex topImageTopMargin:(CGFloat) topImageTopMargin topImageHeight:(CGFloat)topImageHeight bottomIndex:(NSInteger)bottomIndex bottomImageTopMargin:(CGFloat)bottomImageTopMargin bottomImageHeight:(CGFloat) bottomImageHeight; 47 | 48 | @end 49 | 50 | typedef enum { 51 | MHYahooParallaxViewTypeHorizontal = 0, 52 | MHYahooParallaxViewTypeVertical = 1 53 | } MHYahooParallaxViewType; 54 | 55 | 56 | @interface MHYahooParallaxView : UIView { 57 | CGFloat _width; 58 | CGFloat _height; 59 | CGFloat _pageDivisor; 60 | NSInteger _dataCount; 61 | CGFloat _separatorWidth; 62 | } 63 | 64 | @property (nonatomic, strong) UICollectionView * parallaxCollectionView; 65 | 66 | @property (nonatomic) MHYahooParallaxViewType parallaxViewType; 67 | @property (nonatomic,assign) id datasource; 68 | @property (nonatomic,assign) id delegate; 69 | @property (nonatomic) NSInteger currentIndex; 70 | 71 | - (id)initWithFrame:(CGRect)frame withViewType:(MHYahooParallaxViewType) viewType; 72 | 73 | - (void) registerClass:(__unsafe_unretained Class) cellClass forCellWithReuseIdentifier:(NSString *) reuseIdentifier; 74 | - (UICollectionViewCell*) cellForItemAtIndexPath:(NSIndexPath*)indexPath; 75 | - (UICollectionViewCell*) dequeueReusableCellWithReuseIdentifier:(NSString *) reuseIdentifier forIndexPath:(NSIndexPath*)indexPath ; 76 | 77 | - (void) setCurrentIndex:(NSInteger)index animated:(BOOL) animated; 78 | @end 79 | -------------------------------------------------------------------------------- /Classes/MHYahooParallaxView.m: -------------------------------------------------------------------------------- 1 | // 2 | // MHYahooParallaxView 3 | // iamkel.net 4 | // 5 | // Created by Michael Henry Pantaleon on 18/07/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | // Version 1.0.1 9 | // 10 | // Permission is hereby granted, free of charge, to any person obtaining a copy 11 | // of this software and associated documentation files (the "Software"), to deal 12 | // in the Software without restriction, including without limitation the rights 13 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | // copies of the Software, and to permit persons to whom the Software is 15 | // furnished to do so, subject to the following conditions: 16 | // 17 | // The above copyright notice and this permission notice shall be included in 18 | // all copies or substantial portions of the Software. 19 | // 20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 26 | // THE SOFTWARE. 27 | 28 | #import "MHYahooParallaxView.h" 29 | #import "MHYahooParallaxCollectionViewLayout.h" 30 | @implementation MHYahooParallaxView 31 | @synthesize parallaxCollectionView = _parallaxCollectionView; 32 | @synthesize delegate = _delegate; 33 | @synthesize datasource = _datasource; 34 | @synthesize parallaxViewType = _parallaxViewType; 35 | @synthesize currentIndex = _currentIndex; 36 | 37 | - (id)initWithFrame:(CGRect)frame { 38 | return [self initWithFrame:frame withViewType:MHYahooParallaxViewTypeHorizontal]; 39 | } 40 | 41 | - (id)initWithFrame:(CGRect)frame withViewType:(MHYahooParallaxViewType) viewType{ 42 | self = [super initWithFrame:frame]; 43 | if (self) { 44 | MHYahooParallaxCollectionViewLayout *layout = [[MHYahooParallaxCollectionViewLayout alloc]init]; 45 | _separatorWidth = 5.0f; 46 | layout.separatorWidth = _separatorWidth; 47 | frame.size.width = frame.size.width + _separatorWidth; 48 | _parallaxCollectionView = [[UICollectionView alloc]initWithFrame:frame collectionViewLayout:layout]; 49 | _parallaxCollectionView.delegate = self; 50 | _parallaxCollectionView.dataSource = self; 51 | _parallaxCollectionView.pagingEnabled = YES; 52 | _parallaxViewType = viewType; 53 | 54 | [self addSubview:_parallaxCollectionView]; 55 | } 56 | return self; 57 | } 58 | 59 | - (void) layoutSubviews { 60 | 61 | [super layoutSubviews]; 62 | _width = self.frame.size.width; 63 | _height = self.frame.size.height; 64 | 65 | 66 | } 67 | 68 | - (void) registerClass:(__unsafe_unretained Class) cellClass forCellWithReuseIdentifier:(NSString *) reuseIdentifier { 69 | [_parallaxCollectionView registerClass:cellClass forCellWithReuseIdentifier:reuseIdentifier]; 70 | } 71 | 72 | - (NSInteger) numberOfSectionsInCollectionView:(UICollectionView *)collectionView { 73 | return 1; 74 | } 75 | 76 | - (NSInteger) collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section { 77 | if([_datasource respondsToSelector:@selector(numberOfRowsInParallaxView:)]) { 78 | _dataCount = [_datasource numberOfRowsInParallaxView:self]; 79 | } 80 | return _dataCount; 81 | } 82 | 83 | - (UICollectionViewCell*) collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { 84 | UICollectionViewCell * cell; 85 | if([_datasource respondsToSelector:@selector(parallaxView:cellForRowAtIndexPath:)]) { 86 | cell = [_datasource parallaxView:self cellForRowAtIndexPath:indexPath]; 87 | } 88 | return cell; 89 | } 90 | 91 | - (UICollectionViewCell*) cellForItemAtIndexPath:(NSIndexPath*)indexPath { 92 | return [_parallaxCollectionView cellForItemAtIndexPath:indexPath]; 93 | } 94 | 95 | - (UICollectionViewCell*) dequeueReusableCellWithReuseIdentifier:(NSString *) reuseIdentifier forIndexPath:(NSIndexPath*)indexPath { 96 | return [_parallaxCollectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath]; 97 | } 98 | 99 | 100 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView { 101 | _currentIndex = scrollView.contentOffset.x/(_width + _separatorWidth); 102 | 103 | 104 | if(_parallaxViewType == MHYahooParallaxViewTypeHorizontal){ 105 | 106 | NSInteger leftIndex = -1; 107 | NSInteger rightIndex = -1; 108 | 109 | leftIndex = _currentIndex; 110 | 111 | if(_currentIndex < (_dataCount - 1)) { 112 | rightIndex = leftIndex + 1; 113 | } 114 | 115 | CGFloat leftImageMargingLeft = scrollView.contentOffset.x>0?((fmod(scrollView.contentOffset.x + _width + _separatorWidth,_width + _separatorWidth))):0.0f; 116 | CGFloat leftImageWidth = (_width + _separatorWidth) - (fmod(abs(scrollView.contentOffset.x + _separatorWidth ),_width + _separatorWidth)); 117 | CGFloat rightImageMarginLeft = 0.0f; 118 | CGFloat rightImageWidth = leftImageMargingLeft - _separatorWidth; 119 | 120 | if([_delegate respondsToSelector:(@selector(parallaxViewDidScrollHorizontally:leftIndex:leftImageLeftMargin:leftImageWidth:rightIndex:rightImageLeftMargin:rightImageWidth:))]) { 121 | [_delegate parallaxViewDidScrollHorizontally:self leftIndex:leftIndex leftImageLeftMargin:leftImageMargingLeft leftImageWidth:leftImageWidth rightIndex:rightIndex rightImageLeftMargin:rightImageMarginLeft rightImageWidth:rightImageWidth]; 122 | } 123 | 124 | }else { 125 | 126 | NSInteger topIndex = -1; 127 | NSInteger bottomIndex = -1; 128 | 129 | topIndex = _currentIndex; 130 | 131 | if(_currentIndex < (_dataCount - 1)) { 132 | bottomIndex = topIndex + 1; 133 | } 134 | 135 | CGFloat topImageTopMargin = scrollView.contentOffset.y>0?((fmod(scrollView.contentOffset.y + _height,_height))):0.0f; 136 | CGFloat topImageHeight = _height - (fmod(abs(scrollView.contentOffset.y) ,_height)); 137 | CGFloat bottomImageTopMargin = 0.0f; 138 | CGFloat bottomImageHeight = topImageTopMargin; 139 | 140 | if([_delegate respondsToSelector:@selector(parallaxViewDidScrollVertically:topIndex:topImageTopMargin:topImageHeight:bottomIndex:bottomImageTopMargin:bottomImageHeight:)]) { 141 | 142 | [_delegate parallaxViewDidScrollVertically:self topIndex:topIndex topImageTopMargin:topImageTopMargin topImageHeight:topImageHeight bottomIndex:bottomIndex bottomImageTopMargin:bottomImageTopMargin bottomImageHeight:bottomImageHeight]; 143 | } 144 | } 145 | } 146 | 147 | - (void) setCurrentIndex:(NSInteger)index { 148 | [self setCurrentIndex:index animated:NO]; 149 | } 150 | 151 | - (void) setCurrentIndex:(NSInteger)index animated:(BOOL) animated { 152 | _currentIndex = index; 153 | [_parallaxCollectionView setContentOffset:CGPointMake(index * _width, 0.0f) animated:animated]; 154 | } 155 | 156 | - (void) dealloc { 157 | _parallaxCollectionView = nil; 158 | } 159 | 160 | 161 | @end 162 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Michael Henry Pantaleon 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1497BC3B197EE3F800F2C632 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3A197EE3F800F2C632 /* Foundation.framework */; }; 11 | 1497BC3D197EE3F800F2C632 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3C197EE3F800F2C632 /* CoreGraphics.framework */; }; 12 | 1497BC3F197EE3F800F2C632 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3E197EE3F800F2C632 /* UIKit.framework */; }; 13 | 1497BC45197EE3F800F2C632 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC43197EE3F800F2C632 /* InfoPlist.strings */; }; 14 | 1497BC47197EE3F800F2C632 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1497BC46197EE3F800F2C632 /* main.m */; }; 15 | 1497BC4B197EE3F800F2C632 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1497BC4A197EE3F800F2C632 /* AppDelegate.m */; }; 16 | 1497BC4E197EE3F800F2C632 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC4C197EE3F800F2C632 /* Main.storyboard */; }; 17 | 1497BC51197EE3F800F2C632 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1497BC50197EE3F800F2C632 /* ViewController.m */; }; 18 | 1497BC53197EE3F800F2C632 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC52197EE3F800F2C632 /* Images.xcassets */; }; 19 | 1497BC5A197EE3F800F2C632 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC59197EE3F800F2C632 /* XCTest.framework */; }; 20 | 1497BC5B197EE3F800F2C632 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3A197EE3F800F2C632 /* Foundation.framework */; }; 21 | 1497BC5C197EE3F800F2C632 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3E197EE3F800F2C632 /* UIKit.framework */; }; 22 | 1497BC64197EE3F800F2C632 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC62197EE3F800F2C632 /* InfoPlist.strings */; }; 23 | 1497BC66197EE3F800F2C632 /* MHYahooParallaxViewExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1497BC65197EE3F800F2C632 /* MHYahooParallaxViewExampleTests.m */; }; 24 | 149C953C198EC70C00AFF518 /* MHTsekotCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 149C9539198EC70C00AFF518 /* MHTsekotCell.m */; }; 25 | 149C953D198EC70C00AFF518 /* MHYahooWeatherParallaxCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 149C953B198EC70C00AFF518 /* MHYahooWeatherParallaxCell.m */; }; 26 | 149C9544198EC92200AFF518 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3A197EE3F800F2C632 /* Foundation.framework */; }; 27 | 149C9545198EC92200AFF518 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3C197EE3F800F2C632 /* CoreGraphics.framework */; }; 28 | 149C9546198EC92200AFF518 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3E197EE3F800F2C632 /* UIKit.framework */; }; 29 | 149C954C198EC92200AFF518 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 149C954A198EC92200AFF518 /* InfoPlist.strings */; }; 30 | 149C954E198EC92200AFF518 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 149C954D198EC92200AFF518 /* main.m */; }; 31 | 149C9552198EC92200AFF518 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 149C9551198EC92200AFF518 /* AppDelegate.m */; }; 32 | 149C9555198EC92200AFF518 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 149C9553198EC92200AFF518 /* Main.storyboard */; }; 33 | 149C9558198EC92200AFF518 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 149C9557198EC92200AFF518 /* ViewController.m */; }; 34 | 149C955A198EC92200AFF518 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 149C9559198EC92200AFF518 /* Images.xcassets */; }; 35 | 149C9560198EC92200AFF518 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC59197EE3F800F2C632 /* XCTest.framework */; }; 36 | 149C9561198EC92200AFF518 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3A197EE3F800F2C632 /* Foundation.framework */; }; 37 | 149C9562198EC92200AFF518 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1497BC3E197EE3F800F2C632 /* UIKit.framework */; }; 38 | 149C956A198EC92200AFF518 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 149C9568198EC92200AFF518 /* InfoPlist.strings */; }; 39 | 149C956C198EC92200AFF518 /* YahooWeatherExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 149C956B198EC92200AFF518 /* YahooWeatherExampleTests.m */; }; 40 | 149C9574198ECA7400AFF518 /* MHYahooParallaxView.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F03040198EC60400F6EA24 /* MHYahooParallaxView.m */; }; 41 | 149C9575198ECA7400AFF518 /* MHYahooParallaxCollectionViewLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F03042198EC60400F6EA24 /* MHYahooParallaxCollectionViewLayout.m */; }; 42 | 149C9576198ECA7400AFF518 /* MHYahooWeatherParallaxCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 149C953B198EC70C00AFF518 /* MHYahooWeatherParallaxCell.m */; }; 43 | 149C9577198ECB1200AFF518 /* 0.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC8E197EEE1200F2C632 /* 0.jpg */; }; 44 | 149C9578198ECB1200AFF518 /* 1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC8F197EEE1200F2C632 /* 1.jpg */; }; 45 | 149C9579198ECB1200AFF518 /* 2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC90197EEE1200F2C632 /* 2.jpg */; }; 46 | 149C957A198ECB1200AFF518 /* 3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC91197EEE1200F2C632 /* 3.jpg */; }; 47 | 149C957B198ECB1200AFF518 /* 4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 1497BC92197EEE1200F2C632 /* 4.jpg */; }; 48 | 14DE322A198C0028001391A3 /* header_bg.png in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3228198C0028001391A3 /* header_bg.png */; }; 49 | 14DE322B198C0028001391A3 /* header_bg@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3229198C0028001391A3 /* header_bg@2x.png */; }; 50 | 14DE3237198C0316001391A3 /* subaru-0.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE322D198C0316001391A3 /* subaru-0.jpg */; }; 51 | 14DE3238198C0316001391A3 /* subaru-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE322E198C0316001391A3 /* subaru-1.jpg */; }; 52 | 14DE3239198C0316001391A3 /* subaru-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE322F198C0316001391A3 /* subaru-2.jpg */; }; 53 | 14DE323A198C0316001391A3 /* subaru-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3230198C0316001391A3 /* subaru-3.jpg */; }; 54 | 14DE323B198C0316001391A3 /* subaru-4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3231198C0316001391A3 /* subaru-4.jpg */; }; 55 | 14DE323C198C0316001391A3 /* subaru-5.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3232198C0316001391A3 /* subaru-5.jpg */; }; 56 | 14DE323D198C0316001391A3 /* subaru-6.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3233198C0316001391A3 /* subaru-6.jpg */; }; 57 | 14DE323E198C0316001391A3 /* subaru-7.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3234198C0316001391A3 /* subaru-7.jpg */; }; 58 | 14DE323F198C0316001391A3 /* subaru-8.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3235198C0316001391A3 /* subaru-8.jpg */; }; 59 | 14DE3240198C0316001391A3 /* subaru-9.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3236198C0316001391A3 /* subaru-9.jpg */; }; 60 | 14DE3247198C04FF001391A3 /* content-1.png in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3241198C04FF001391A3 /* content-1.png */; }; 61 | 14DE3248198C04FF001391A3 /* content-1@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3242198C04FF001391A3 /* content-1@2x.png */; }; 62 | 14DE3249198C04FF001391A3 /* content-2.png in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3243198C04FF001391A3 /* content-2.png */; }; 63 | 14DE324A198C04FF001391A3 /* content-2@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3244198C04FF001391A3 /* content-2@2x.png */; }; 64 | 14DE324B198C04FF001391A3 /* content-3.png in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3245198C04FF001391A3 /* content-3.png */; }; 65 | 14DE324C198C04FF001391A3 /* content-3@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 14DE3246198C04FF001391A3 /* content-3@2x.png */; }; 66 | 14F03044198EC60500F6EA24 /* MHYahooParallaxView.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F03040198EC60400F6EA24 /* MHYahooParallaxView.m */; }; 67 | 14F03045198EC60500F6EA24 /* MHYahooParallaxCollectionViewLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F03042198EC60400F6EA24 /* MHYahooParallaxCollectionViewLayout.m */; }; 68 | /* End PBXBuildFile section */ 69 | 70 | /* Begin PBXContainerItemProxy section */ 71 | 1497BC5D197EE3F800F2C632 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 1497BC2F197EE3F800F2C632 /* Project object */; 74 | proxyType = 1; 75 | remoteGlobalIDString = 1497BC36197EE3F800F2C632; 76 | remoteInfo = MHYahooParallaxViewExample; 77 | }; 78 | 149C9563198EC92200AFF518 /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 1497BC2F197EE3F800F2C632 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 149C9542198EC92100AFF518; 83 | remoteInfo = YahooWeatherExample; 84 | }; 85 | /* End PBXContainerItemProxy section */ 86 | 87 | /* Begin PBXFileReference section */ 88 | 1497BC37197EE3F800F2C632 /* MHYahooParallaxViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MHYahooParallaxViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 89 | 1497BC3A197EE3F800F2C632 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 90 | 1497BC3C197EE3F800F2C632 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 91 | 1497BC3E197EE3F800F2C632 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 92 | 1497BC42197EE3F800F2C632 /* MHYahooParallaxViewExample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MHYahooParallaxViewExample-Info.plist"; sourceTree = ""; }; 93 | 1497BC44197EE3F800F2C632 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 94 | 1497BC46197EE3F800F2C632 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 95 | 1497BC48197EE3F800F2C632 /* MHYahooParallaxViewExample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MHYahooParallaxViewExample-Prefix.pch"; sourceTree = ""; }; 96 | 1497BC49197EE3F800F2C632 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 97 | 1497BC4A197EE3F800F2C632 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 98 | 1497BC4D197EE3F800F2C632 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 99 | 1497BC4F197EE3F800F2C632 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 100 | 1497BC50197EE3F800F2C632 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 101 | 1497BC52197EE3F800F2C632 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 102 | 1497BC58197EE3F800F2C632 /* MHYahooParallaxViewExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MHYahooParallaxViewExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 103 | 1497BC59197EE3F800F2C632 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 104 | 1497BC61197EE3F800F2C632 /* MHYahooParallaxViewExampleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MHYahooParallaxViewExampleTests-Info.plist"; sourceTree = ""; }; 105 | 1497BC63197EE3F800F2C632 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 106 | 1497BC65197EE3F800F2C632 /* MHYahooParallaxViewExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MHYahooParallaxViewExampleTests.m; sourceTree = ""; }; 107 | 1497BC8E197EEE1200F2C632 /* 0.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 0.jpg; sourceTree = ""; }; 108 | 1497BC8F197EEE1200F2C632 /* 1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 1.jpg; sourceTree = ""; }; 109 | 1497BC90197EEE1200F2C632 /* 2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 2.jpg; sourceTree = ""; }; 110 | 1497BC91197EEE1200F2C632 /* 3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 3.jpg; sourceTree = ""; }; 111 | 1497BC92197EEE1200F2C632 /* 4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 4.jpg; sourceTree = ""; }; 112 | 149C9538198EC70C00AFF518 /* MHTsekotCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MHTsekotCell.h; sourceTree = ""; }; 113 | 149C9539198EC70C00AFF518 /* MHTsekotCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MHTsekotCell.m; sourceTree = ""; }; 114 | 149C953A198EC70C00AFF518 /* MHYahooWeatherParallaxCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MHYahooWeatherParallaxCell.h; path = ../MHYahooParallaxViewExample/MHYahooWeatherParallaxCell.h; sourceTree = ""; }; 115 | 149C953B198EC70C00AFF518 /* MHYahooWeatherParallaxCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MHYahooWeatherParallaxCell.m; path = ../MHYahooParallaxViewExample/MHYahooWeatherParallaxCell.m; sourceTree = ""; }; 116 | 149C9543198EC92100AFF518 /* YahooWeatherExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YahooWeatherExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 117 | 149C9549198EC92200AFF518 /* YahooWeatherExample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "YahooWeatherExample-Info.plist"; sourceTree = ""; }; 118 | 149C954B198EC92200AFF518 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 119 | 149C954D198EC92200AFF518 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 120 | 149C954F198EC92200AFF518 /* YahooWeatherExample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "YahooWeatherExample-Prefix.pch"; sourceTree = ""; }; 121 | 149C9550198EC92200AFF518 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 122 | 149C9551198EC92200AFF518 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 123 | 149C9554198EC92200AFF518 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 124 | 149C9556198EC92200AFF518 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 125 | 149C9557198EC92200AFF518 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 126 | 149C9559198EC92200AFF518 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 127 | 149C955F198EC92200AFF518 /* YahooWeatherExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YahooWeatherExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 128 | 149C9567198EC92200AFF518 /* YahooWeatherExampleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "YahooWeatherExampleTests-Info.plist"; sourceTree = ""; }; 129 | 149C9569198EC92200AFF518 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 130 | 149C956B198EC92200AFF518 /* YahooWeatherExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YahooWeatherExampleTests.m; sourceTree = ""; }; 131 | 14DE3228198C0028001391A3 /* header_bg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = header_bg.png; sourceTree = ""; }; 132 | 14DE3229198C0028001391A3 /* header_bg@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "header_bg@2x.png"; sourceTree = ""; }; 133 | 14DE322D198C0316001391A3 /* subaru-0.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-0.jpg"; sourceTree = ""; }; 134 | 14DE322E198C0316001391A3 /* subaru-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-1.jpg"; sourceTree = ""; }; 135 | 14DE322F198C0316001391A3 /* subaru-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-2.jpg"; sourceTree = ""; }; 136 | 14DE3230198C0316001391A3 /* subaru-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-3.jpg"; sourceTree = ""; }; 137 | 14DE3231198C0316001391A3 /* subaru-4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-4.jpg"; sourceTree = ""; }; 138 | 14DE3232198C0316001391A3 /* subaru-5.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-5.jpg"; sourceTree = ""; }; 139 | 14DE3233198C0316001391A3 /* subaru-6.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-6.jpg"; sourceTree = ""; }; 140 | 14DE3234198C0316001391A3 /* subaru-7.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-7.jpg"; sourceTree = ""; }; 141 | 14DE3235198C0316001391A3 /* subaru-8.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-8.jpg"; sourceTree = ""; }; 142 | 14DE3236198C0316001391A3 /* subaru-9.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "subaru-9.jpg"; sourceTree = ""; }; 143 | 14DE3241198C04FF001391A3 /* content-1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "content-1.png"; sourceTree = ""; }; 144 | 14DE3242198C04FF001391A3 /* content-1@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "content-1@2x.png"; sourceTree = ""; }; 145 | 14DE3243198C04FF001391A3 /* content-2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "content-2.png"; sourceTree = ""; }; 146 | 14DE3244198C04FF001391A3 /* content-2@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "content-2@2x.png"; sourceTree = ""; }; 147 | 14DE3245198C04FF001391A3 /* content-3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "content-3.png"; sourceTree = ""; }; 148 | 14DE3246198C04FF001391A3 /* content-3@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "content-3@2x.png"; sourceTree = ""; }; 149 | 14F03040198EC60400F6EA24 /* MHYahooParallaxView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MHYahooParallaxView.m; sourceTree = ""; }; 150 | 14F03041198EC60400F6EA24 /* MHYahooParallaxView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MHYahooParallaxView.h; sourceTree = ""; }; 151 | 14F03042198EC60400F6EA24 /* MHYahooParallaxCollectionViewLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MHYahooParallaxCollectionViewLayout.m; sourceTree = ""; }; 152 | 14F03043198EC60400F6EA24 /* MHYahooParallaxCollectionViewLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MHYahooParallaxCollectionViewLayout.h; sourceTree = ""; }; 153 | /* End PBXFileReference section */ 154 | 155 | /* Begin PBXFrameworksBuildPhase section */ 156 | 1497BC34197EE3F800F2C632 /* Frameworks */ = { 157 | isa = PBXFrameworksBuildPhase; 158 | buildActionMask = 2147483647; 159 | files = ( 160 | 1497BC3D197EE3F800F2C632 /* CoreGraphics.framework in Frameworks */, 161 | 1497BC3F197EE3F800F2C632 /* UIKit.framework in Frameworks */, 162 | 1497BC3B197EE3F800F2C632 /* Foundation.framework in Frameworks */, 163 | ); 164 | runOnlyForDeploymentPostprocessing = 0; 165 | }; 166 | 1497BC55197EE3F800F2C632 /* Frameworks */ = { 167 | isa = PBXFrameworksBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | 1497BC5A197EE3F800F2C632 /* XCTest.framework in Frameworks */, 171 | 1497BC5C197EE3F800F2C632 /* UIKit.framework in Frameworks */, 172 | 1497BC5B197EE3F800F2C632 /* Foundation.framework in Frameworks */, 173 | ); 174 | runOnlyForDeploymentPostprocessing = 0; 175 | }; 176 | 149C9540198EC92100AFF518 /* Frameworks */ = { 177 | isa = PBXFrameworksBuildPhase; 178 | buildActionMask = 2147483647; 179 | files = ( 180 | 149C9545198EC92200AFF518 /* CoreGraphics.framework in Frameworks */, 181 | 149C9546198EC92200AFF518 /* UIKit.framework in Frameworks */, 182 | 149C9544198EC92200AFF518 /* Foundation.framework in Frameworks */, 183 | ); 184 | runOnlyForDeploymentPostprocessing = 0; 185 | }; 186 | 149C955C198EC92200AFF518 /* Frameworks */ = { 187 | isa = PBXFrameworksBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | 149C9560198EC92200AFF518 /* XCTest.framework in Frameworks */, 191 | 149C9562198EC92200AFF518 /* UIKit.framework in Frameworks */, 192 | 149C9561198EC92200AFF518 /* Foundation.framework in Frameworks */, 193 | ); 194 | runOnlyForDeploymentPostprocessing = 0; 195 | }; 196 | /* End PBXFrameworksBuildPhase section */ 197 | 198 | /* Begin PBXGroup section */ 199 | 1434BE261980003E00DE8257 /* Classes */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | 14F03041198EC60400F6EA24 /* MHYahooParallaxView.h */, 203 | 14F03040198EC60400F6EA24 /* MHYahooParallaxView.m */, 204 | 14F03042198EC60400F6EA24 /* MHYahooParallaxCollectionViewLayout.m */, 205 | 14F03043198EC60400F6EA24 /* MHYahooParallaxCollectionViewLayout.h */, 206 | ); 207 | name = Classes; 208 | path = ../../Classes; 209 | sourceTree = ""; 210 | }; 211 | 1497BC2E197EE3F800F2C632 = { 212 | isa = PBXGroup; 213 | children = ( 214 | 1497BC40197EE3F800F2C632 /* MHYahooParallaxViewExample */, 215 | 1497BC5F197EE3F800F2C632 /* MHYahooParallaxViewExampleTests */, 216 | 149C9547198EC92200AFF518 /* YahooWeatherExample */, 217 | 149C9565198EC92200AFF518 /* YahooWeatherExampleTests */, 218 | 1497BC39197EE3F800F2C632 /* Frameworks */, 219 | 1497BC38197EE3F800F2C632 /* Products */, 220 | ); 221 | sourceTree = ""; 222 | }; 223 | 1497BC38197EE3F800F2C632 /* Products */ = { 224 | isa = PBXGroup; 225 | children = ( 226 | 1497BC37197EE3F800F2C632 /* MHYahooParallaxViewExample.app */, 227 | 1497BC58197EE3F800F2C632 /* MHYahooParallaxViewExampleTests.xctest */, 228 | 149C9543198EC92100AFF518 /* YahooWeatherExample.app */, 229 | 149C955F198EC92200AFF518 /* YahooWeatherExampleTests.xctest */, 230 | ); 231 | name = Products; 232 | sourceTree = ""; 233 | }; 234 | 1497BC39197EE3F800F2C632 /* Frameworks */ = { 235 | isa = PBXGroup; 236 | children = ( 237 | 1497BC3A197EE3F800F2C632 /* Foundation.framework */, 238 | 1497BC3C197EE3F800F2C632 /* CoreGraphics.framework */, 239 | 1497BC3E197EE3F800F2C632 /* UIKit.framework */, 240 | 1497BC59197EE3F800F2C632 /* XCTest.framework */, 241 | ); 242 | name = Frameworks; 243 | sourceTree = ""; 244 | }; 245 | 1497BC40197EE3F800F2C632 /* MHYahooParallaxViewExample */ = { 246 | isa = PBXGroup; 247 | children = ( 248 | 149C953E198EC78200AFF518 /* Images */, 249 | 149C9537198EC6F900AFF518 /* CustomCells */, 250 | 1434BE261980003E00DE8257 /* Classes */, 251 | 1497BC49197EE3F800F2C632 /* AppDelegate.h */, 252 | 1497BC4A197EE3F800F2C632 /* AppDelegate.m */, 253 | 1497BC4C197EE3F800F2C632 /* Main.storyboard */, 254 | 1497BC4F197EE3F800F2C632 /* ViewController.h */, 255 | 1497BC50197EE3F800F2C632 /* ViewController.m */, 256 | 1497BC52197EE3F800F2C632 /* Images.xcassets */, 257 | 1497BC41197EE3F800F2C632 /* Supporting Files */, 258 | ); 259 | path = MHYahooParallaxViewExample; 260 | sourceTree = ""; 261 | }; 262 | 1497BC41197EE3F800F2C632 /* Supporting Files */ = { 263 | isa = PBXGroup; 264 | children = ( 265 | 1497BC42197EE3F800F2C632 /* MHYahooParallaxViewExample-Info.plist */, 266 | 1497BC43197EE3F800F2C632 /* InfoPlist.strings */, 267 | 1497BC46197EE3F800F2C632 /* main.m */, 268 | 1497BC48197EE3F800F2C632 /* MHYahooParallaxViewExample-Prefix.pch */, 269 | ); 270 | name = "Supporting Files"; 271 | sourceTree = ""; 272 | }; 273 | 1497BC5F197EE3F800F2C632 /* MHYahooParallaxViewExampleTests */ = { 274 | isa = PBXGroup; 275 | children = ( 276 | 1497BC65197EE3F800F2C632 /* MHYahooParallaxViewExampleTests.m */, 277 | 1497BC60197EE3F800F2C632 /* Supporting Files */, 278 | ); 279 | path = MHYahooParallaxViewExampleTests; 280 | sourceTree = ""; 281 | }; 282 | 1497BC60197EE3F800F2C632 /* Supporting Files */ = { 283 | isa = PBXGroup; 284 | children = ( 285 | 1497BC61197EE3F800F2C632 /* MHYahooParallaxViewExampleTests-Info.plist */, 286 | 1497BC62197EE3F800F2C632 /* InfoPlist.strings */, 287 | ); 288 | name = "Supporting Files"; 289 | sourceTree = ""; 290 | }; 291 | 1497BC8D197EEE1200F2C632 /* Nature */ = { 292 | isa = PBXGroup; 293 | children = ( 294 | 1497BC8E197EEE1200F2C632 /* 0.jpg */, 295 | 1497BC8F197EEE1200F2C632 /* 1.jpg */, 296 | 1497BC90197EEE1200F2C632 /* 2.jpg */, 297 | 1497BC91197EEE1200F2C632 /* 3.jpg */, 298 | 1497BC92197EEE1200F2C632 /* 4.jpg */, 299 | ); 300 | name = Nature; 301 | path = ../MHYahooParallaxViewExample/NATURE; 302 | sourceTree = ""; 303 | }; 304 | 149C9537198EC6F900AFF518 /* CustomCells */ = { 305 | isa = PBXGroup; 306 | children = ( 307 | 149C9538198EC70C00AFF518 /* MHTsekotCell.h */, 308 | 149C9539198EC70C00AFF518 /* MHTsekotCell.m */, 309 | ); 310 | name = CustomCells; 311 | sourceTree = ""; 312 | }; 313 | 149C953E198EC78200AFF518 /* Images */ = { 314 | isa = PBXGroup; 315 | children = ( 316 | 14DE3223198BFFDC001391A3 /* Tsekot */, 317 | ); 318 | name = Images; 319 | sourceTree = ""; 320 | }; 321 | 149C9547198EC92200AFF518 /* YahooWeatherExample */ = { 322 | isa = PBXGroup; 323 | children = ( 324 | 149C9573198EC9F000AFF518 /* CustomCell for YahooWeather Example */, 325 | 1497BC8D197EEE1200F2C632 /* Nature */, 326 | 149C9550198EC92200AFF518 /* AppDelegate.h */, 327 | 149C9551198EC92200AFF518 /* AppDelegate.m */, 328 | 149C9553198EC92200AFF518 /* Main.storyboard */, 329 | 149C9556198EC92200AFF518 /* ViewController.h */, 330 | 149C9557198EC92200AFF518 /* ViewController.m */, 331 | 149C9559198EC92200AFF518 /* Images.xcassets */, 332 | 149C9548198EC92200AFF518 /* Supporting Files */, 333 | ); 334 | path = YahooWeatherExample; 335 | sourceTree = ""; 336 | }; 337 | 149C9548198EC92200AFF518 /* Supporting Files */ = { 338 | isa = PBXGroup; 339 | children = ( 340 | 149C9549198EC92200AFF518 /* YahooWeatherExample-Info.plist */, 341 | 149C954A198EC92200AFF518 /* InfoPlist.strings */, 342 | 149C954D198EC92200AFF518 /* main.m */, 343 | 149C954F198EC92200AFF518 /* YahooWeatherExample-Prefix.pch */, 344 | ); 345 | name = "Supporting Files"; 346 | sourceTree = ""; 347 | }; 348 | 149C9565198EC92200AFF518 /* YahooWeatherExampleTests */ = { 349 | isa = PBXGroup; 350 | children = ( 351 | 149C956B198EC92200AFF518 /* YahooWeatherExampleTests.m */, 352 | 149C9566198EC92200AFF518 /* Supporting Files */, 353 | ); 354 | path = YahooWeatherExampleTests; 355 | sourceTree = ""; 356 | }; 357 | 149C9566198EC92200AFF518 /* Supporting Files */ = { 358 | isa = PBXGroup; 359 | children = ( 360 | 149C9567198EC92200AFF518 /* YahooWeatherExampleTests-Info.plist */, 361 | 149C9568198EC92200AFF518 /* InfoPlist.strings */, 362 | ); 363 | name = "Supporting Files"; 364 | sourceTree = ""; 365 | }; 366 | 149C9573198EC9F000AFF518 /* CustomCell for YahooWeather Example */ = { 367 | isa = PBXGroup; 368 | children = ( 369 | 149C953A198EC70C00AFF518 /* MHYahooWeatherParallaxCell.h */, 370 | 149C953B198EC70C00AFF518 /* MHYahooWeatherParallaxCell.m */, 371 | ); 372 | name = "CustomCell for YahooWeather Example"; 373 | sourceTree = ""; 374 | }; 375 | 14DE3223198BFFDC001391A3 /* Tsekot */ = { 376 | isa = PBXGroup; 377 | children = ( 378 | 14DE3241198C04FF001391A3 /* content-1.png */, 379 | 14DE3242198C04FF001391A3 /* content-1@2x.png */, 380 | 14DE3243198C04FF001391A3 /* content-2.png */, 381 | 14DE3244198C04FF001391A3 /* content-2@2x.png */, 382 | 14DE3245198C04FF001391A3 /* content-3.png */, 383 | 14DE3246198C04FF001391A3 /* content-3@2x.png */, 384 | 14DE322C198C0316001391A3 /* BRZ */, 385 | 14DE3228198C0028001391A3 /* header_bg.png */, 386 | 14DE3229198C0028001391A3 /* header_bg@2x.png */, 387 | ); 388 | name = Tsekot; 389 | sourceTree = ""; 390 | }; 391 | 14DE322C198C0316001391A3 /* BRZ */ = { 392 | isa = PBXGroup; 393 | children = ( 394 | 14DE322D198C0316001391A3 /* subaru-0.jpg */, 395 | 14DE322E198C0316001391A3 /* subaru-1.jpg */, 396 | 14DE322F198C0316001391A3 /* subaru-2.jpg */, 397 | 14DE3230198C0316001391A3 /* subaru-3.jpg */, 398 | 14DE3231198C0316001391A3 /* subaru-4.jpg */, 399 | 14DE3232198C0316001391A3 /* subaru-5.jpg */, 400 | 14DE3233198C0316001391A3 /* subaru-6.jpg */, 401 | 14DE3234198C0316001391A3 /* subaru-7.jpg */, 402 | 14DE3235198C0316001391A3 /* subaru-8.jpg */, 403 | 14DE3236198C0316001391A3 /* subaru-9.jpg */, 404 | ); 405 | path = BRZ; 406 | sourceTree = ""; 407 | }; 408 | /* End PBXGroup section */ 409 | 410 | /* Begin PBXNativeTarget section */ 411 | 1497BC36197EE3F800F2C632 /* MHYahooParallaxViewExample */ = { 412 | isa = PBXNativeTarget; 413 | buildConfigurationList = 1497BC69197EE3F800F2C632 /* Build configuration list for PBXNativeTarget "MHYahooParallaxViewExample" */; 414 | buildPhases = ( 415 | 1497BC33197EE3F800F2C632 /* Sources */, 416 | 1497BC34197EE3F800F2C632 /* Frameworks */, 417 | 1497BC35197EE3F800F2C632 /* Resources */, 418 | ); 419 | buildRules = ( 420 | ); 421 | dependencies = ( 422 | ); 423 | name = MHYahooParallaxViewExample; 424 | productName = MHYahooParallaxViewExample; 425 | productReference = 1497BC37197EE3F800F2C632 /* MHYahooParallaxViewExample.app */; 426 | productType = "com.apple.product-type.application"; 427 | }; 428 | 1497BC57197EE3F800F2C632 /* MHYahooParallaxViewExampleTests */ = { 429 | isa = PBXNativeTarget; 430 | buildConfigurationList = 1497BC6C197EE3F800F2C632 /* Build configuration list for PBXNativeTarget "MHYahooParallaxViewExampleTests" */; 431 | buildPhases = ( 432 | 1497BC54197EE3F800F2C632 /* Sources */, 433 | 1497BC55197EE3F800F2C632 /* Frameworks */, 434 | 1497BC56197EE3F800F2C632 /* Resources */, 435 | ); 436 | buildRules = ( 437 | ); 438 | dependencies = ( 439 | 1497BC5E197EE3F800F2C632 /* PBXTargetDependency */, 440 | ); 441 | name = MHYahooParallaxViewExampleTests; 442 | productName = MHYahooParallaxViewExampleTests; 443 | productReference = 1497BC58197EE3F800F2C632 /* MHYahooParallaxViewExampleTests.xctest */; 444 | productType = "com.apple.product-type.bundle.unit-test"; 445 | }; 446 | 149C9542198EC92100AFF518 /* YahooWeatherExample */ = { 447 | isa = PBXNativeTarget; 448 | buildConfigurationList = 149C956D198EC92200AFF518 /* Build configuration list for PBXNativeTarget "YahooWeatherExample" */; 449 | buildPhases = ( 450 | 149C953F198EC92100AFF518 /* Sources */, 451 | 149C9540198EC92100AFF518 /* Frameworks */, 452 | 149C9541198EC92100AFF518 /* Resources */, 453 | ); 454 | buildRules = ( 455 | ); 456 | dependencies = ( 457 | ); 458 | name = YahooWeatherExample; 459 | productName = YahooWeatherExample; 460 | productReference = 149C9543198EC92100AFF518 /* YahooWeatherExample.app */; 461 | productType = "com.apple.product-type.application"; 462 | }; 463 | 149C955E198EC92200AFF518 /* YahooWeatherExampleTests */ = { 464 | isa = PBXNativeTarget; 465 | buildConfigurationList = 149C9570198EC92200AFF518 /* Build configuration list for PBXNativeTarget "YahooWeatherExampleTests" */; 466 | buildPhases = ( 467 | 149C955B198EC92200AFF518 /* Sources */, 468 | 149C955C198EC92200AFF518 /* Frameworks */, 469 | 149C955D198EC92200AFF518 /* Resources */, 470 | ); 471 | buildRules = ( 472 | ); 473 | dependencies = ( 474 | 149C9564198EC92200AFF518 /* PBXTargetDependency */, 475 | ); 476 | name = YahooWeatherExampleTests; 477 | productName = YahooWeatherExampleTests; 478 | productReference = 149C955F198EC92200AFF518 /* YahooWeatherExampleTests.xctest */; 479 | productType = "com.apple.product-type.bundle.unit-test"; 480 | }; 481 | /* End PBXNativeTarget section */ 482 | 483 | /* Begin PBXProject section */ 484 | 1497BC2F197EE3F800F2C632 /* Project object */ = { 485 | isa = PBXProject; 486 | attributes = { 487 | LastUpgradeCheck = 0510; 488 | ORGANIZATIONNAME = "Michael Henry Pantaleon"; 489 | TargetAttributes = { 490 | 1497BC57197EE3F800F2C632 = { 491 | TestTargetID = 1497BC36197EE3F800F2C632; 492 | }; 493 | 149C955E198EC92200AFF518 = { 494 | TestTargetID = 1497BC36197EE3F800F2C632; 495 | }; 496 | }; 497 | }; 498 | buildConfigurationList = 1497BC32197EE3F800F2C632 /* Build configuration list for PBXProject "MHYahooParallaxViewExample" */; 499 | compatibilityVersion = "Xcode 3.2"; 500 | developmentRegion = English; 501 | hasScannedForEncodings = 0; 502 | knownRegions = ( 503 | en, 504 | Base, 505 | ); 506 | mainGroup = 1497BC2E197EE3F800F2C632; 507 | productRefGroup = 1497BC38197EE3F800F2C632 /* Products */; 508 | projectDirPath = ""; 509 | projectRoot = ""; 510 | targets = ( 511 | 1497BC36197EE3F800F2C632 /* MHYahooParallaxViewExample */, 512 | 1497BC57197EE3F800F2C632 /* MHYahooParallaxViewExampleTests */, 513 | 149C9542198EC92100AFF518 /* YahooWeatherExample */, 514 | 149C955E198EC92200AFF518 /* YahooWeatherExampleTests */, 515 | ); 516 | }; 517 | /* End PBXProject section */ 518 | 519 | /* Begin PBXResourcesBuildPhase section */ 520 | 1497BC35197EE3F800F2C632 /* Resources */ = { 521 | isa = PBXResourcesBuildPhase; 522 | buildActionMask = 2147483647; 523 | files = ( 524 | 14DE3249198C04FF001391A3 /* content-2.png in Resources */, 525 | 14DE324B198C04FF001391A3 /* content-3.png in Resources */, 526 | 14DE323F198C0316001391A3 /* subaru-8.jpg in Resources */, 527 | 14DE323B198C0316001391A3 /* subaru-4.jpg in Resources */, 528 | 14DE322A198C0028001391A3 /* header_bg.png in Resources */, 529 | 14DE323E198C0316001391A3 /* subaru-7.jpg in Resources */, 530 | 14DE3240198C0316001391A3 /* subaru-9.jpg in Resources */, 531 | 1497BC53197EE3F800F2C632 /* Images.xcassets in Resources */, 532 | 1497BC45197EE3F800F2C632 /* InfoPlist.strings in Resources */, 533 | 14DE322B198C0028001391A3 /* header_bg@2x.png in Resources */, 534 | 1497BC4E197EE3F800F2C632 /* Main.storyboard in Resources */, 535 | 14DE3247198C04FF001391A3 /* content-1.png in Resources */, 536 | 14DE3239198C0316001391A3 /* subaru-2.jpg in Resources */, 537 | 14DE3237198C0316001391A3 /* subaru-0.jpg in Resources */, 538 | 14DE3238198C0316001391A3 /* subaru-1.jpg in Resources */, 539 | 14DE323A198C0316001391A3 /* subaru-3.jpg in Resources */, 540 | 14DE323C198C0316001391A3 /* subaru-5.jpg in Resources */, 541 | 14DE324C198C04FF001391A3 /* content-3@2x.png in Resources */, 542 | 14DE3248198C04FF001391A3 /* content-1@2x.png in Resources */, 543 | 14DE323D198C0316001391A3 /* subaru-6.jpg in Resources */, 544 | 14DE324A198C04FF001391A3 /* content-2@2x.png in Resources */, 545 | ); 546 | runOnlyForDeploymentPostprocessing = 0; 547 | }; 548 | 1497BC56197EE3F800F2C632 /* Resources */ = { 549 | isa = PBXResourcesBuildPhase; 550 | buildActionMask = 2147483647; 551 | files = ( 552 | 1497BC64197EE3F800F2C632 /* InfoPlist.strings in Resources */, 553 | ); 554 | runOnlyForDeploymentPostprocessing = 0; 555 | }; 556 | 149C9541198EC92100AFF518 /* Resources */ = { 557 | isa = PBXResourcesBuildPhase; 558 | buildActionMask = 2147483647; 559 | files = ( 560 | 149C9577198ECB1200AFF518 /* 0.jpg in Resources */, 561 | 149C9578198ECB1200AFF518 /* 1.jpg in Resources */, 562 | 149C9579198ECB1200AFF518 /* 2.jpg in Resources */, 563 | 149C957A198ECB1200AFF518 /* 3.jpg in Resources */, 564 | 149C957B198ECB1200AFF518 /* 4.jpg in Resources */, 565 | 149C955A198EC92200AFF518 /* Images.xcassets in Resources */, 566 | 149C954C198EC92200AFF518 /* InfoPlist.strings in Resources */, 567 | 149C9555198EC92200AFF518 /* Main.storyboard in Resources */, 568 | ); 569 | runOnlyForDeploymentPostprocessing = 0; 570 | }; 571 | 149C955D198EC92200AFF518 /* Resources */ = { 572 | isa = PBXResourcesBuildPhase; 573 | buildActionMask = 2147483647; 574 | files = ( 575 | 149C956A198EC92200AFF518 /* InfoPlist.strings in Resources */, 576 | ); 577 | runOnlyForDeploymentPostprocessing = 0; 578 | }; 579 | /* End PBXResourcesBuildPhase section */ 580 | 581 | /* Begin PBXSourcesBuildPhase section */ 582 | 1497BC33197EE3F800F2C632 /* Sources */ = { 583 | isa = PBXSourcesBuildPhase; 584 | buildActionMask = 2147483647; 585 | files = ( 586 | 1497BC51197EE3F800F2C632 /* ViewController.m in Sources */, 587 | 14F03044198EC60500F6EA24 /* MHYahooParallaxView.m in Sources */, 588 | 149C953C198EC70C00AFF518 /* MHTsekotCell.m in Sources */, 589 | 1497BC4B197EE3F800F2C632 /* AppDelegate.m in Sources */, 590 | 149C953D198EC70C00AFF518 /* MHYahooWeatherParallaxCell.m in Sources */, 591 | 1497BC47197EE3F800F2C632 /* main.m in Sources */, 592 | 14F03045198EC60500F6EA24 /* MHYahooParallaxCollectionViewLayout.m in Sources */, 593 | ); 594 | runOnlyForDeploymentPostprocessing = 0; 595 | }; 596 | 1497BC54197EE3F800F2C632 /* Sources */ = { 597 | isa = PBXSourcesBuildPhase; 598 | buildActionMask = 2147483647; 599 | files = ( 600 | 1497BC66197EE3F800F2C632 /* MHYahooParallaxViewExampleTests.m in Sources */, 601 | ); 602 | runOnlyForDeploymentPostprocessing = 0; 603 | }; 604 | 149C953F198EC92100AFF518 /* Sources */ = { 605 | isa = PBXSourcesBuildPhase; 606 | buildActionMask = 2147483647; 607 | files = ( 608 | 149C9574198ECA7400AFF518 /* MHYahooParallaxView.m in Sources */, 609 | 149C9575198ECA7400AFF518 /* MHYahooParallaxCollectionViewLayout.m in Sources */, 610 | 149C9576198ECA7400AFF518 /* MHYahooWeatherParallaxCell.m in Sources */, 611 | 149C9558198EC92200AFF518 /* ViewController.m in Sources */, 612 | 149C9552198EC92200AFF518 /* AppDelegate.m in Sources */, 613 | 149C954E198EC92200AFF518 /* main.m in Sources */, 614 | ); 615 | runOnlyForDeploymentPostprocessing = 0; 616 | }; 617 | 149C955B198EC92200AFF518 /* Sources */ = { 618 | isa = PBXSourcesBuildPhase; 619 | buildActionMask = 2147483647; 620 | files = ( 621 | 149C956C198EC92200AFF518 /* YahooWeatherExampleTests.m in Sources */, 622 | ); 623 | runOnlyForDeploymentPostprocessing = 0; 624 | }; 625 | /* End PBXSourcesBuildPhase section */ 626 | 627 | /* Begin PBXTargetDependency section */ 628 | 1497BC5E197EE3F800F2C632 /* PBXTargetDependency */ = { 629 | isa = PBXTargetDependency; 630 | target = 1497BC36197EE3F800F2C632 /* MHYahooParallaxViewExample */; 631 | targetProxy = 1497BC5D197EE3F800F2C632 /* PBXContainerItemProxy */; 632 | }; 633 | 149C9564198EC92200AFF518 /* PBXTargetDependency */ = { 634 | isa = PBXTargetDependency; 635 | target = 149C9542198EC92100AFF518 /* YahooWeatherExample */; 636 | targetProxy = 149C9563198EC92200AFF518 /* PBXContainerItemProxy */; 637 | }; 638 | /* End PBXTargetDependency section */ 639 | 640 | /* Begin PBXVariantGroup section */ 641 | 1497BC43197EE3F800F2C632 /* InfoPlist.strings */ = { 642 | isa = PBXVariantGroup; 643 | children = ( 644 | 1497BC44197EE3F800F2C632 /* en */, 645 | ); 646 | name = InfoPlist.strings; 647 | sourceTree = ""; 648 | }; 649 | 1497BC4C197EE3F800F2C632 /* Main.storyboard */ = { 650 | isa = PBXVariantGroup; 651 | children = ( 652 | 1497BC4D197EE3F800F2C632 /* Base */, 653 | ); 654 | name = Main.storyboard; 655 | sourceTree = ""; 656 | }; 657 | 1497BC62197EE3F800F2C632 /* InfoPlist.strings */ = { 658 | isa = PBXVariantGroup; 659 | children = ( 660 | 1497BC63197EE3F800F2C632 /* en */, 661 | ); 662 | name = InfoPlist.strings; 663 | sourceTree = ""; 664 | }; 665 | 149C954A198EC92200AFF518 /* InfoPlist.strings */ = { 666 | isa = PBXVariantGroup; 667 | children = ( 668 | 149C954B198EC92200AFF518 /* en */, 669 | ); 670 | name = InfoPlist.strings; 671 | sourceTree = ""; 672 | }; 673 | 149C9553198EC92200AFF518 /* Main.storyboard */ = { 674 | isa = PBXVariantGroup; 675 | children = ( 676 | 149C9554198EC92200AFF518 /* Base */, 677 | ); 678 | name = Main.storyboard; 679 | sourceTree = ""; 680 | }; 681 | 149C9568198EC92200AFF518 /* InfoPlist.strings */ = { 682 | isa = PBXVariantGroup; 683 | children = ( 684 | 149C9569198EC92200AFF518 /* en */, 685 | ); 686 | name = InfoPlist.strings; 687 | sourceTree = ""; 688 | }; 689 | /* End PBXVariantGroup section */ 690 | 691 | /* Begin XCBuildConfiguration section */ 692 | 1497BC67197EE3F800F2C632 /* Debug */ = { 693 | isa = XCBuildConfiguration; 694 | buildSettings = { 695 | ALWAYS_SEARCH_USER_PATHS = NO; 696 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 697 | CLANG_CXX_LIBRARY = "libc++"; 698 | CLANG_ENABLE_MODULES = YES; 699 | CLANG_ENABLE_OBJC_ARC = YES; 700 | CLANG_WARN_BOOL_CONVERSION = YES; 701 | CLANG_WARN_CONSTANT_CONVERSION = YES; 702 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 703 | CLANG_WARN_EMPTY_BODY = YES; 704 | CLANG_WARN_ENUM_CONVERSION = YES; 705 | CLANG_WARN_INT_CONVERSION = YES; 706 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 707 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 708 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 709 | COPY_PHASE_STRIP = NO; 710 | GCC_C_LANGUAGE_STANDARD = gnu99; 711 | GCC_DYNAMIC_NO_PIC = NO; 712 | GCC_OPTIMIZATION_LEVEL = 0; 713 | GCC_PREPROCESSOR_DEFINITIONS = ( 714 | "DEBUG=1", 715 | "$(inherited)", 716 | ); 717 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 718 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 719 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 720 | GCC_WARN_UNDECLARED_SELECTOR = YES; 721 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 722 | GCC_WARN_UNUSED_FUNCTION = YES; 723 | GCC_WARN_UNUSED_VARIABLE = YES; 724 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 725 | ONLY_ACTIVE_ARCH = YES; 726 | SDKROOT = iphoneos; 727 | }; 728 | name = Debug; 729 | }; 730 | 1497BC68197EE3F800F2C632 /* Release */ = { 731 | isa = XCBuildConfiguration; 732 | buildSettings = { 733 | ALWAYS_SEARCH_USER_PATHS = NO; 734 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 735 | CLANG_CXX_LIBRARY = "libc++"; 736 | CLANG_ENABLE_MODULES = YES; 737 | CLANG_ENABLE_OBJC_ARC = YES; 738 | CLANG_WARN_BOOL_CONVERSION = YES; 739 | CLANG_WARN_CONSTANT_CONVERSION = YES; 740 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 741 | CLANG_WARN_EMPTY_BODY = YES; 742 | CLANG_WARN_ENUM_CONVERSION = YES; 743 | CLANG_WARN_INT_CONVERSION = YES; 744 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 745 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 746 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 747 | COPY_PHASE_STRIP = YES; 748 | ENABLE_NS_ASSERTIONS = NO; 749 | GCC_C_LANGUAGE_STANDARD = gnu99; 750 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 751 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 752 | GCC_WARN_UNDECLARED_SELECTOR = YES; 753 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 754 | GCC_WARN_UNUSED_FUNCTION = YES; 755 | GCC_WARN_UNUSED_VARIABLE = YES; 756 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 757 | SDKROOT = iphoneos; 758 | VALIDATE_PRODUCT = YES; 759 | }; 760 | name = Release; 761 | }; 762 | 1497BC6A197EE3F800F2C632 /* Debug */ = { 763 | isa = XCBuildConfiguration; 764 | buildSettings = { 765 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 766 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 767 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 768 | GCC_PREFIX_HEADER = "MHYahooParallaxViewExample/MHYahooParallaxViewExample-Prefix.pch"; 769 | INFOPLIST_FILE = "MHYahooParallaxViewExample/MHYahooParallaxViewExample-Info.plist"; 770 | PRODUCT_NAME = "$(TARGET_NAME)"; 771 | WRAPPER_EXTENSION = app; 772 | }; 773 | name = Debug; 774 | }; 775 | 1497BC6B197EE3F800F2C632 /* Release */ = { 776 | isa = XCBuildConfiguration; 777 | buildSettings = { 778 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 779 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 780 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 781 | GCC_PREFIX_HEADER = "MHYahooParallaxViewExample/MHYahooParallaxViewExample-Prefix.pch"; 782 | INFOPLIST_FILE = "MHYahooParallaxViewExample/MHYahooParallaxViewExample-Info.plist"; 783 | PRODUCT_NAME = "$(TARGET_NAME)"; 784 | WRAPPER_EXTENSION = app; 785 | }; 786 | name = Release; 787 | }; 788 | 1497BC6D197EE3F800F2C632 /* Debug */ = { 789 | isa = XCBuildConfiguration; 790 | buildSettings = { 791 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MHYahooParallaxViewExample.app/MHYahooParallaxViewExample"; 792 | FRAMEWORK_SEARCH_PATHS = ( 793 | "$(SDKROOT)/Developer/Library/Frameworks", 794 | "$(inherited)", 795 | "$(DEVELOPER_FRAMEWORKS_DIR)", 796 | ); 797 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 798 | GCC_PREFIX_HEADER = "MHYahooParallaxViewExample/MHYahooParallaxViewExample-Prefix.pch"; 799 | GCC_PREPROCESSOR_DEFINITIONS = ( 800 | "DEBUG=1", 801 | "$(inherited)", 802 | ); 803 | INFOPLIST_FILE = "MHYahooParallaxViewExampleTests/MHYahooParallaxViewExampleTests-Info.plist"; 804 | PRODUCT_NAME = "$(TARGET_NAME)"; 805 | TEST_HOST = "$(BUNDLE_LOADER)"; 806 | WRAPPER_EXTENSION = xctest; 807 | }; 808 | name = Debug; 809 | }; 810 | 1497BC6E197EE3F800F2C632 /* Release */ = { 811 | isa = XCBuildConfiguration; 812 | buildSettings = { 813 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MHYahooParallaxViewExample.app/MHYahooParallaxViewExample"; 814 | FRAMEWORK_SEARCH_PATHS = ( 815 | "$(SDKROOT)/Developer/Library/Frameworks", 816 | "$(inherited)", 817 | "$(DEVELOPER_FRAMEWORKS_DIR)", 818 | ); 819 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 820 | GCC_PREFIX_HEADER = "MHYahooParallaxViewExample/MHYahooParallaxViewExample-Prefix.pch"; 821 | INFOPLIST_FILE = "MHYahooParallaxViewExampleTests/MHYahooParallaxViewExampleTests-Info.plist"; 822 | PRODUCT_NAME = "$(TARGET_NAME)"; 823 | TEST_HOST = "$(BUNDLE_LOADER)"; 824 | WRAPPER_EXTENSION = xctest; 825 | }; 826 | name = Release; 827 | }; 828 | 149C956E198EC92200AFF518 /* Debug */ = { 829 | isa = XCBuildConfiguration; 830 | buildSettings = { 831 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 832 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 833 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 834 | GCC_PREFIX_HEADER = "YahooWeatherExample/YahooWeatherExample-Prefix.pch"; 835 | GCC_PREPROCESSOR_DEFINITIONS = ( 836 | "DEBUG=1", 837 | "$(inherited)", 838 | ); 839 | INFOPLIST_FILE = "YahooWeatherExample/YahooWeatherExample-Info.plist"; 840 | PRODUCT_NAME = "$(TARGET_NAME)"; 841 | WRAPPER_EXTENSION = app; 842 | }; 843 | name = Debug; 844 | }; 845 | 149C956F198EC92200AFF518 /* Release */ = { 846 | isa = XCBuildConfiguration; 847 | buildSettings = { 848 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 849 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 850 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 851 | GCC_PREFIX_HEADER = "YahooWeatherExample/YahooWeatherExample-Prefix.pch"; 852 | INFOPLIST_FILE = "YahooWeatherExample/YahooWeatherExample-Info.plist"; 853 | PRODUCT_NAME = "$(TARGET_NAME)"; 854 | WRAPPER_EXTENSION = app; 855 | }; 856 | name = Release; 857 | }; 858 | 149C9571198EC92200AFF518 /* Debug */ = { 859 | isa = XCBuildConfiguration; 860 | buildSettings = { 861 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MHYahooParallaxViewExample.app/MHYahooParallaxViewExample"; 862 | FRAMEWORK_SEARCH_PATHS = ( 863 | "$(SDKROOT)/Developer/Library/Frameworks", 864 | "$(inherited)", 865 | "$(DEVELOPER_FRAMEWORKS_DIR)", 866 | ); 867 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 868 | GCC_PREFIX_HEADER = "YahooWeatherExample/YahooWeatherExample-Prefix.pch"; 869 | GCC_PREPROCESSOR_DEFINITIONS = ( 870 | "DEBUG=1", 871 | "$(inherited)", 872 | ); 873 | INFOPLIST_FILE = "YahooWeatherExampleTests/YahooWeatherExampleTests-Info.plist"; 874 | PRODUCT_NAME = "$(TARGET_NAME)"; 875 | TEST_HOST = "$(BUNDLE_LOADER)"; 876 | WRAPPER_EXTENSION = xctest; 877 | }; 878 | name = Debug; 879 | }; 880 | 149C9572198EC92200AFF518 /* Release */ = { 881 | isa = XCBuildConfiguration; 882 | buildSettings = { 883 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MHYahooParallaxViewExample.app/MHYahooParallaxViewExample"; 884 | FRAMEWORK_SEARCH_PATHS = ( 885 | "$(SDKROOT)/Developer/Library/Frameworks", 886 | "$(inherited)", 887 | "$(DEVELOPER_FRAMEWORKS_DIR)", 888 | ); 889 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 890 | GCC_PREFIX_HEADER = "YahooWeatherExample/YahooWeatherExample-Prefix.pch"; 891 | INFOPLIST_FILE = "YahooWeatherExampleTests/YahooWeatherExampleTests-Info.plist"; 892 | PRODUCT_NAME = "$(TARGET_NAME)"; 893 | TEST_HOST = "$(BUNDLE_LOADER)"; 894 | WRAPPER_EXTENSION = xctest; 895 | }; 896 | name = Release; 897 | }; 898 | /* End XCBuildConfiguration section */ 899 | 900 | /* Begin XCConfigurationList section */ 901 | 1497BC32197EE3F800F2C632 /* Build configuration list for PBXProject "MHYahooParallaxViewExample" */ = { 902 | isa = XCConfigurationList; 903 | buildConfigurations = ( 904 | 1497BC67197EE3F800F2C632 /* Debug */, 905 | 1497BC68197EE3F800F2C632 /* Release */, 906 | ); 907 | defaultConfigurationIsVisible = 0; 908 | defaultConfigurationName = Release; 909 | }; 910 | 1497BC69197EE3F800F2C632 /* Build configuration list for PBXNativeTarget "MHYahooParallaxViewExample" */ = { 911 | isa = XCConfigurationList; 912 | buildConfigurations = ( 913 | 1497BC6A197EE3F800F2C632 /* Debug */, 914 | 1497BC6B197EE3F800F2C632 /* Release */, 915 | ); 916 | defaultConfigurationIsVisible = 0; 917 | defaultConfigurationName = Release; 918 | }; 919 | 1497BC6C197EE3F800F2C632 /* Build configuration list for PBXNativeTarget "MHYahooParallaxViewExampleTests" */ = { 920 | isa = XCConfigurationList; 921 | buildConfigurations = ( 922 | 1497BC6D197EE3F800F2C632 /* Debug */, 923 | 1497BC6E197EE3F800F2C632 /* Release */, 924 | ); 925 | defaultConfigurationIsVisible = 0; 926 | defaultConfigurationName = Release; 927 | }; 928 | 149C956D198EC92200AFF518 /* Build configuration list for PBXNativeTarget "YahooWeatherExample" */ = { 929 | isa = XCConfigurationList; 930 | buildConfigurations = ( 931 | 149C956E198EC92200AFF518 /* Debug */, 932 | 149C956F198EC92200AFF518 /* Release */, 933 | ); 934 | defaultConfigurationIsVisible = 0; 935 | }; 936 | 149C9570198EC92200AFF518 /* Build configuration list for PBXNativeTarget "YahooWeatherExampleTests" */ = { 937 | isa = XCConfigurationList; 938 | buildConfigurations = ( 939 | 149C9571198EC92200AFF518 /* Debug */, 940 | 149C9572198EC92200AFF518 /* Release */, 941 | ); 942 | defaultConfigurationIsVisible = 0; 943 | }; 944 | /* End XCConfigurationList section */ 945 | }; 946 | rootObject = 1497BC2F197EE3F800F2C632 /* Project object */; 947 | } 948 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample.xcodeproj/project.xcworkspace/xcshareddata/MHYahooParallaxViewExample.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 8B17E828-3448-495C-8DDD-E34494CBCACC 9 | IDESourceControlProjectName 10 | MHYahooParallaxViewExample 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | A095AD2E-FF42-4411-8F83-4AEE2D145866 14 | https://github.com/michaelhenry/MHYahooParallaxView.git 15 | 16 | IDESourceControlProjectPath 17 | MHYahooParallaxViewExample/MHYahooParallaxViewExample.xcodeproj/project.xcworkspace 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | A095AD2E-FF42-4411-8F83-4AEE2D145866 21 | ../../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/michaelhenry/MHYahooParallaxView.git 25 | IDESourceControlProjectVersion 26 | 110 27 | IDESourceControlProjectWCCIdentifier 28 | A095AD2E-FF42-4411-8F83-4AEE2D145866 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | A095AD2E-FF42-4411-8F83-4AEE2D145866 36 | IDESourceControlWCCName 37 | MHYahooParallaxView 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample.xcodeproj/xcuserdata/michaelhenrypantaleon.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample.xcodeproj/xcuserdata/michaelhenrypantaleon.xcuserdatad/xcschemes/MHYahooParallaxViewExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 53 | 59 | 60 | 61 | 63 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 81 | 82 | 91 | 92 | 98 | 99 | 100 | 101 | 102 | 103 | 109 | 110 | 116 | 117 | 118 | 119 | 121 | 122 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample.xcodeproj/xcuserdata/michaelhenrypantaleon.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | MHYahooParallaxViewExample.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | YahooWeatherExample.xcscheme 13 | 14 | orderHint 15 | 3 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 1497BC36197EE3F800F2C632 21 | 22 | primary 23 | 24 | 25 | 1497BC57197EE3F800F2C632 26 | 27 | primary 28 | 29 | 30 | 149C9542198EC92100AFF518 31 | 32 | primary 33 | 34 | 35 | 149C955E198EC92200AFF518 36 | 37 | primary 38 | 39 | 40 | 14DE31EC198BFCB5001391A3 41 | 42 | primary 43 | 44 | 45 | 14DE3208198BFCB5001391A3 46 | 47 | primary 48 | 49 | 50 | 14FC483B198BF4540084C7DC 51 | 52 | primary 53 | 54 | 55 | 14FC4857198BF4540084C7DC 56 | 57 | primary 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // MHYahooParallaxViewExample 4 | // 5 | // Created by Michael Henry Pantaleon on 23/07/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // MHYahooParallaxViewExample 4 | // 5 | // Created by Michael Henry Pantaleon on 23/07/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @implementation AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; 17 | return YES; 18 | } 19 | 20 | - (void)applicationWillResignActive:(UIApplication *)application 21 | { 22 | // 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. 23 | // 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. 24 | } 25 | 26 | - (void)applicationDidEnterBackground:(UIApplication *)application 27 | { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | - (void)applicationWillEnterForeground:(UIApplication *)application 33 | { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application 38 | { 39 | // 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. 40 | } 41 | 42 | - (void)applicationWillTerminate:(UIApplication *)application 43 | { 44 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-0.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-1.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-2.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-3.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-4.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-5.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-6.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-7.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-8.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/BRZ/subaru-9.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/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 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "logo-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "idiom" : "iphone", 11 | "size" : "29x29", 12 | "scale" : "2x" 13 | }, 14 | { 15 | "size" : "40x40", 16 | "idiom" : "iphone", 17 | "filename" : "logo-80.png", 18 | "scale" : "2x" 19 | }, 20 | { 21 | "size" : "57x57", 22 | "idiom" : "iphone", 23 | "filename" : "logo-57.png", 24 | "scale" : "1x" 25 | }, 26 | { 27 | "size" : "57x57", 28 | "idiom" : "iphone", 29 | "filename" : "logo-114.png", 30 | "scale" : "2x" 31 | }, 32 | { 33 | "size" : "60x60", 34 | "idiom" : "iphone", 35 | "filename" : "logo-120.png", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "29x29", 46 | "scale" : "2x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "1x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "40x40", 56 | "scale" : "2x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "50x50", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "50x50", 66 | "scale" : "2x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "72x72", 71 | "scale" : "1x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "72x72", 76 | "scale" : "2x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "1x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "76x76", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-114.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-120.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-29.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-57.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/AppIcon.appiconset/logo-80.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "filename" : "logo-960.png", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "extent" : "full-screen", 13 | "idiom" : "iphone", 14 | "subtype" : "retina4", 15 | "filename" : "launch-image-1136.png", 16 | "minimum-system-version" : "7.0", 17 | "orientation" : "portrait", 18 | "scale" : "2x" 19 | } 20 | ], 21 | "info" : { 22 | "version" : 1, 23 | "author" : "xcode" 24 | } 25 | } -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/LaunchImage.launchimage/launch-image-1136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/LaunchImage.launchimage/launch-image-1136.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/LaunchImage.launchimage/logo-960.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/Images.xcassets/LaunchImage.launchimage/logo-960.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/MHTsekotCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // MHTsekotCell.h 3 | // CollectViewTest 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MHTsekotCell : UICollectionViewCell 12 | @property (nonatomic, strong) UITableView * tsekotTableView; 13 | @property (nonatomic) id datasource; 14 | @property (nonatomic) id delegate; 15 | + (NSString*)reuseIdentifier; 16 | @end 17 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/MHTsekotCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // MHTsekotCell.m 3 | // CollectViewTest 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import "MHTsekotCell.h" 10 | 11 | #define IMAGE_SCROLL_VIEW_TAG 100 12 | #define IMAGE_VIEW_TAG 90 13 | #define CONTENT_IMAGE_VIEW_TAG 80 14 | 15 | @implementation MHTsekotCell 16 | @synthesize tsekotTableView = _tsekotTableView; 17 | @synthesize datasource = _datasource; 18 | @synthesize delegate = _delegate; 19 | - (id)initWithFrame:(CGRect)frame { 20 | self = [super initWithFrame:frame]; 21 | if (self) { 22 | _tsekotTableView = [[UITableView alloc]initWithFrame:frame style:UITableViewStylePlain]; 23 | [self.contentView addSubview:_tsekotTableView]; 24 | } 25 | return self; 26 | } 27 | 28 | - (void) setDatasource:(id)datasource { 29 | if(_tsekotTableView.dataSource == nil){ 30 | _tsekotTableView.dataSource = datasource; 31 | } 32 | } 33 | 34 | - (void) setDelegate:(id)delegate { 35 | if(_tsekotTableView.delegate == nil){ 36 | _tsekotTableView.delegate = delegate; 37 | } 38 | } 39 | 40 | - (void)layoutSubviews { 41 | [super layoutSubviews]; 42 | _tsekotTableView.frame = CGRectMake(0.0f, 0.0f, self.contentView.frame.size.width, self.contentView.frame.size.height); 43 | 44 | } 45 | 46 | + (NSString*)reuseIdentifier { 47 | return NSStringFromClass([MHTsekotCell class]); 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/MHYahooParallaxViewExample-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | net.iamkel.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/MHYahooParallaxViewExample-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/MHYahooWeatherParallaxCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // MHYahooWeatherParallaxCell.h 3 | // CollectViewTest 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MHYahooWeatherParallaxCell : UICollectionViewCell 12 | 13 | @property (nonatomic,strong) UIImageView * parallaxImageView; 14 | 15 | + (NSString*) reuseIdentifier; 16 | @end 17 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/MHYahooWeatherParallaxCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // MHYahooWeatherParallaxCell.m 3 | // CollectViewTest 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import "MHYahooWeatherParallaxCell.h" 10 | 11 | @implementation MHYahooWeatherParallaxCell 12 | @synthesize parallaxImageView = _parallaxImageView; 13 | - (id)initWithFrame:(CGRect)frame 14 | { 15 | self = [super initWithFrame:frame]; 16 | if (self) { 17 | _parallaxImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0.0f, 0.0f, frame.size.width, frame.size.height)]; 18 | _parallaxImageView.contentMode = UIViewContentModeCenter; 19 | [self.contentView addSubview:_parallaxImageView]; 20 | } 21 | return self; 22 | } 23 | 24 | - (void) layoutSubviews { 25 | _parallaxImageView.clipsToBounds = YES; 26 | _parallaxImageView.frame = CGRectMake(0.0f, 0.0f, self.contentView.frame.size.width, self.contentView.frame.size.height); 27 | 28 | } 29 | 30 | + (NSString*)reuseIdentifier { 31 | return NSStringFromClass([MHYahooWeatherParallaxCell class]); 32 | } 33 | @end 34 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/0.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/1.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/2.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/3.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/NATURE/4.jpg -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // CollectViewTest 4 | // 5 | // Created by Michael Henry Pantaleon on 2/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController{ 12 | CGFloat _imageHeaderHeight; 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // CollectViewTest 4 | // 5 | // Created by Michael Henry Pantaleon on 2/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #define IMAGE_VIEW_TAG 100 10 | #define IMAGE_SCROLL_VIEW_TAG 101 11 | #define CONTENT_IMAGE_VIEW_TAG 102 12 | 13 | #import "ViewController.h" 14 | #import "MHYahooParallaxView.h" 15 | #import "MHTsekotCell.h" 16 | 17 | @interface ViewController () 18 | 19 | @end 20 | 21 | @implementation ViewController 22 | 23 | - (void)viewDidLoad 24 | { 25 | [super viewDidLoad]; 26 | 27 | _imageHeaderHeight = self.view.frame.size.height * 0.70f; 28 | 29 | MHYahooParallaxView * parallaxView = [[MHYahooParallaxView alloc]initWithFrame:CGRectMake(0.0f,0.0f, self.view.frame.size.width, self.view.frame.size.height)]; 30 | [parallaxView registerClass:[MHTsekotCell class] forCellWithReuseIdentifier:[MHTsekotCell reuseIdentifier]]; 31 | parallaxView.delegate = self; 32 | parallaxView.datasource = self; 33 | [self.view addSubview:parallaxView]; 34 | 35 | // Do any additional setup after loading the view, typically from a nib. 36 | } 37 | 38 | - (void)didReceiveMemoryWarning 39 | { 40 | [super didReceiveMemoryWarning]; 41 | // Dispose of any resources that can be recreated. 42 | } 43 | 44 | #pragma mark - ParallaxView Datasource and Delegate 45 | - (UICollectionViewCell*) parallaxView:(MHYahooParallaxView *)parallaxView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 46 | MHTsekotCell * tsekotCell = (MHTsekotCell*)[parallaxView dequeueReusableCellWithReuseIdentifier:[MHTsekotCell reuseIdentifier] forIndexPath:indexPath]; 47 | tsekotCell.delegate = self; 48 | tsekotCell.datasource = self; 49 | tsekotCell.tsekotTableView.tag = indexPath.row; 50 | tsekotCell.tsekotTableView.contentOffset = CGPointMake(0.0f, 0.0f); 51 | [tsekotCell.tsekotTableView reloadData]; 52 | 53 | return tsekotCell; 54 | } 55 | 56 | 57 | - (NSInteger) numberOfRowsInParallaxView:(MHYahooParallaxView *)parallaxView { 58 | return 10; 59 | } 60 | 61 | - (void)parallaxViewDidScrollHorizontally:(MHYahooParallaxView *)parallaxView leftIndex:(NSInteger)leftIndex leftImageLeftMargin:(CGFloat)leftImageLeftMargin leftImageWidth:(CGFloat)leftImageWidth rightIndex:(NSInteger)rightIndex rightImageLeftMargin:(CGFloat)rightImageLeftMargin rightImageWidth:(CGFloat)rightImageWidth { 62 | 63 | // leftIndex and Right Index should must be greater than or equal to zero 64 | 65 | if(leftIndex >= 0){ 66 | MHTsekotCell * leftCell = (MHTsekotCell*)[parallaxView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:leftIndex inSection:0]]; 67 | UITableViewCell * tvCell = [leftCell.tsekotTableView cellForRowAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]]; 68 | 69 | UIImageView *iv = (UIImageView*)[tvCell viewWithTag:100]; 70 | CGRect frame = iv.frame; 71 | frame.origin.x = leftImageLeftMargin; 72 | frame.size.width = leftImageWidth; 73 | iv.frame = frame; 74 | } 75 | if(rightIndex >= 0){ 76 | MHTsekotCell * rigthCell = (MHTsekotCell*)[parallaxView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:rightIndex inSection:0]]; 77 | UITableViewCell * tvCell = [rigthCell.tsekotTableView cellForRowAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]]; 78 | 79 | UIImageView *iv = (UIImageView*)[tvCell viewWithTag:100]; 80 | CGRect frame = iv.frame; 81 | frame.origin.x = rightImageLeftMargin; 82 | frame.size.width = rightImageWidth; 83 | iv.frame = frame; 84 | 85 | } 86 | } 87 | 88 | #pragma mark - TableView Datasource and Delegate 89 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { 90 | return 1; 91 | } 92 | 93 | - (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 94 | { 95 | return 2; 96 | } 97 | - (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { 98 | if(indexPath.row == 0) { 99 | return _imageHeaderHeight; 100 | } 101 | return 568.0f; 102 | } 103 | 104 | - (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 105 | UITableViewCell * cell; 106 | if(indexPath.row == 0){ 107 | static NSString * headerId = @"headerCell"; 108 | cell = [tableView dequeueReusableCellWithIdentifier:headerId]; 109 | if(!cell) { 110 | cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:headerId]; 111 | cell.backgroundColor = [UIColor clearColor]; 112 | UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0.0f, 0.0f, cell.contentView.frame.size.width,_imageHeaderHeight)]; 113 | imageView.contentMode = UIViewContentModeCenter; 114 | imageView.tag = IMAGE_VIEW_TAG; 115 | imageView.clipsToBounds = YES; 116 | imageView.autoresizingMask = UIViewAutoresizingFlexibleHeight; 117 | UIScrollView * svImage = [[UIScrollView alloc]initWithFrame:imageView.frame]; 118 | svImage.delegate = self; 119 | svImage.userInteractionEnabled = NO; 120 | 121 | [svImage addSubview:imageView]; 122 | 123 | svImage.tag = IMAGE_SCROLL_VIEW_TAG; 124 | svImage.backgroundColor = [UIColor blackColor]; 125 | svImage.zoomScale = 1.0f; 126 | svImage.minimumZoomScale = 1.0f; 127 | svImage.maximumZoomScale = 2.0f; 128 | [cell.contentView addSubview:svImage]; 129 | UIImageView * headerInfo = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"header_bg"]]; 130 | 131 | [cell.contentView addSubview:headerInfo]; 132 | 133 | CGRect headerFrame = headerInfo.frame; 134 | headerFrame.size.height = 149.0f; 135 | headerFrame.origin.y = _imageHeaderHeight - 149.0f; 136 | headerInfo.frame = headerFrame; 137 | 138 | } 139 | 140 | UIImageView *imageView = (UIImageView*)[cell viewWithTag:IMAGE_VIEW_TAG]; 141 | imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"subaru-%i.jpg",tableView.tag]]; 142 | } else { 143 | static NSString * detailId = @"detailCell"; 144 | cell = [tableView dequeueReusableCellWithIdentifier:detailId]; 145 | if(!cell) { 146 | cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:detailId]; 147 | UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0.0f, 0.0f, self.view.frame.size.width, 568.0f)]; 148 | imageView.tag = CONTENT_IMAGE_VIEW_TAG; 149 | [cell.contentView addSubview:imageView]; 150 | } 151 | UIImageView *imageView = (UIImageView*)[cell viewWithTag:CONTENT_IMAGE_VIEW_TAG]; 152 | imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"content-%i",(tableView.tag%3) + 1]]; 153 | } 154 | 155 | return cell; 156 | } 157 | 158 | #pragma mark - ScrollView Delegate 159 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView { 160 | if(scrollView.tag == IMAGE_SCROLL_VIEW_TAG) return; 161 | UITableView * tv = (UITableView*) scrollView; 162 | UITableViewCell * cell = [tv cellForRowAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]]; 163 | UIScrollView * svImage = (UIScrollView*)[cell viewWithTag:IMAGE_SCROLL_VIEW_TAG]; 164 | CGRect frame = svImage.frame; 165 | frame.size.height = MAX((_imageHeaderHeight-tv.contentOffset.y),0); 166 | frame.origin.y = tv.contentOffset.y; 167 | svImage.frame = frame; 168 | svImage.zoomScale = 1 + (abs(MIN(tv.contentOffset.y,0))/320.0f); 169 | } 170 | 171 | - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { 172 | return [scrollView viewWithTag:IMAGE_VIEW_TAG]; 173 | } 174 | 175 | 176 | @end 177 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-1.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-1@2x.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-2.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-2@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-2@2x.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-3.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-3@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/content-3@2x.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/header_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/header_bg.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/header_bg@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhenry/MHYahooParallaxView/86e6dfb40d5b8297529c73c4b39f195f73c343be/MHYahooParallaxViewExample/MHYahooParallaxViewExample/header_bg@2x.png -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // MHYahooParallaxViewExample 4 | // 5 | // Created by Michael Henry Pantaleon on 23/07/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExampleTests/MHYahooParallaxViewExampleTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | net.iamkel.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExampleTests/MHYahooParallaxViewExampleTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // MHYahooParallaxViewExampleTests.m 3 | // MHYahooParallaxViewExampleTests 4 | // 5 | // Created by Michael Henry Pantaleon on 23/07/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MHYahooParallaxViewExampleTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation MHYahooParallaxViewExampleTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/MHYahooParallaxViewExampleTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // YahooWeatherExample 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // YahooWeatherExample 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @implementation AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; 17 | return YES; 18 | } 19 | 20 | - (void)applicationWillResignActive:(UIApplication *)application 21 | { 22 | // 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. 23 | // 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. 24 | } 25 | 26 | - (void)applicationDidEnterBackground:(UIApplication *)application 27 | { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | - (void)applicationWillEnterForeground:(UIApplication *)application 33 | { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application 38 | { 39 | // 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. 40 | } 41 | 42 | - (void)applicationWillTerminate:(UIApplication *)application 43 | { 44 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/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 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/Images.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" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // YahooWeatherExample 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // YahooWeatherExample 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "MHYahooParallaxView.h" 11 | #import "MHYahooWeatherParallaxCell.h" 12 | 13 | @interface ViewController () 14 | 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | 20 | - (void)viewDidLoad 21 | { 22 | [super viewDidLoad]; 23 | MHYahooParallaxView * parallaxView = [[MHYahooParallaxView alloc]initWithFrame:CGRectMake(0.0f,0.0f, self.view.frame.size.width, self.view.frame.size.height)]; 24 | [parallaxView registerClass:[MHYahooWeatherParallaxCell class] forCellWithReuseIdentifier:[MHYahooWeatherParallaxCell reuseIdentifier]]; 25 | parallaxView.delegate = self; 26 | parallaxView.datasource = self; 27 | [self.view addSubview:parallaxView]; 28 | 29 | // Do any additional setup after loading the view, typically from a nib. 30 | } 31 | 32 | - (UICollectionViewCell*) parallaxView:(MHYahooParallaxView *)parallaxView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 33 | MHYahooWeatherParallaxCell * ywCell = (MHYahooWeatherParallaxCell*)[parallaxView dequeueReusableCellWithReuseIdentifier:[MHYahooWeatherParallaxCell reuseIdentifier] forIndexPath:indexPath]; 34 | ywCell.parallaxImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"%i.jpg",indexPath.row]]; 35 | return ywCell; 36 | } 37 | 38 | 39 | - (NSInteger) numberOfRowsInParallaxView:(MHYahooParallaxView *)parallaxView { 40 | return 5; 41 | } 42 | 43 | - (void)parallaxViewDidScrollHorizontally:(MHYahooParallaxView *)parallaxView leftIndex:(NSInteger)leftIndex leftImageLeftMargin:(CGFloat)leftImageLeftMargin leftImageWidth:(CGFloat)leftImageWidth rightIndex:(NSInteger)rightIndex rightImageLeftMargin:(CGFloat)rightImageLeftMargin rightImageWidth:(CGFloat)rightImageWidth { 44 | 45 | // leftIndex and Right Index should must be greater than or equal to zero 46 | 47 | if(leftIndex >= 0){ 48 | MHYahooWeatherParallaxCell * leftCell = (MHYahooWeatherParallaxCell*)[parallaxView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:leftIndex inSection:0]]; 49 | 50 | CGRect frame = leftCell.parallaxImageView.frame; 51 | frame.origin.x = leftImageLeftMargin; 52 | frame.size.width = leftImageWidth; 53 | leftCell.parallaxImageView.frame = frame; 54 | } 55 | if(rightIndex >= 0){ 56 | MHYahooWeatherParallaxCell * rightCell = (MHYahooWeatherParallaxCell*)[parallaxView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:rightIndex inSection:0]]; 57 | CGRect frame = rightCell.parallaxImageView.frame; 58 | frame.origin.x = rightImageLeftMargin; 59 | frame.size.width = rightImageWidth; 60 | rightCell.parallaxImageView.frame = frame; 61 | } 62 | 63 | } 64 | 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/YahooWeatherExample-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | net.iamkel.example.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/YahooWeatherExample-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // YahooWeatherExample 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExampleTests/YahooWeatherExampleTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | net.iamkel.example.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExampleTests/YahooWeatherExampleTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // YahooWeatherExampleTests.m 3 | // YahooWeatherExampleTests 4 | // 5 | // Created by Michael Henry Pantaleon on 4/08/2014. 6 | // Copyright (c) 2014 Michael Henry Pantaleon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface YahooWeatherExampleTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation YahooWeatherExampleTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /MHYahooParallaxViewExample/YahooWeatherExampleTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | MHYahooParallaxView 2 | =================== 3 | 4 | Parallax implementation control library inspired by Yahoo Weather and News Digest :) 5 | 6 | ## Screenshots 7 | 8 | #### Yahoo Weather Parallax Example 9 | 10 | 11 | ![Preview](http://iamkel.s3.amazonaws.com/github/MHParallaxIntro.gif) 12 | ![Preview](http://iamkel.s3.amazonaws.com/github/MHParallax.gif) 13 | 14 | 15 | 16 | #### News Digest Parallax Example (Tsekot.net app - prototype) 17 | 18 | 19 | ![Preview](http://iamkel.s3.amazonaws.com/github/Tsekot.gif) 20 | 21 | Designed and developed by [michaelhenry](https://github.com/michaelhenry) 22 | 23 | ## How to use 24 | ### Setup 25 | 26 | MHYahooParallaxView * parallaxView = [[MHYahooParallaxView alloc]initWithFrame:CGRectMake(0.0f,0.0f, self.view.frame.size.width, self.view.frame.size.height)]; 27 | [parallaxView registerClass:[MHTsekotCell class] forCellWithReuseIdentifier:[MHTsekotCell reuseIdentifier]]; 28 | parallaxView.delegate = self; 29 | parallaxView.datasource = self; 30 | [self.view addSubview:parallaxView]; 31 | 32 | ### Datasource (MHYahooParallaxViewDatasource) 33 | 34 | @required 35 | 36 | - (NSInteger) numberOfRowsInParallaxView: (MHYahooParallaxView *)parallaxView; 37 | - (UICollectionViewCell*) parallaxView:(MHYahooParallaxView *)parallaxView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 38 | 39 | 40 | ### Delegate (MHYahooParallaxViewDelegate) 41 | 42 | @optional 43 | - (void) parallaxViewDidScrollHorizontally:(MHYahooParallaxView *)parallaxView leftIndex:(NSInteger) leftIndex leftImageLeftMargin:(CGFloat) leftImageLeftMargin leftImageWidth:(CGFloat)leftImageWidth rightIndex:(NSInteger)rightIndex rightImageLeftMargin:(CGFloat)rightImageLeftMargin rightImageWidth:(CGFloat) rightImageWidth; 44 | 45 | - (void) parallaxViewDidScrollVertically:(MHYahooParallaxView *)parallaxView topIndex:(NSInteger) topIndex topImageTopMargin:(CGFloat) topImageTopMargin topImageHeight:(CGFloat)topImageHeight bottomIndex:(NSInteger)bottomIndex bottomImageTopMargin:(CGFloat)bottomImageTopMargin bottomImageHeight:(CGFloat) bottomImageHeight; 46 | 47 | 48 | ## Example 49 | 50 | The project has 2 targets that use as demo. 51 | 52 | - Demo for News Digest (Tsekot.net Prototype app) 53 | - Demo for Yahoo Weather 54 | 55 | 56 | 57 | 58 | Please let me know if you have any questions. 59 | 60 | Cheers, 61 | [Michael Henry Pantaleon](http://www.iamkel.net) 62 | 63 | Twitter: [@michaelhenry119](https://twitter.com/michaelhenry119) 64 | 65 | Linked in: [ken119](http://ph.linkedin.com/in/ken119) 66 | 67 | http://www.iamkel.net 68 | 69 | 70 | 71 | ## Licensing 72 | 73 | Copyright (c) 2014 Michael Henry Pantaleon (http://www.iamkel.net). All rights reserved. 74 | 75 | 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: 76 | 77 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 78 | 79 | 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. 80 | --------------------------------------------------------------------------------