├── Pod
├── Assets
│ └── .gitkeep
└── Classes
│ ├── .gitkeep
│ ├── JPBParallaxTableViewController.h
│ ├── JPBFloatingTextViewController.h
│ ├── JPBParallaxBlurViewController.h
│ ├── JPBParallaxTableViewController.m
│ ├── JPBFloatingTextViewController.m
│ └── JPBParallaxBlurViewController.m
├── asplode.png
├── preview.gif
├── Example
├── Tests
│ ├── en.lproj
│ │ └── InfoPlist.strings
│ ├── Tests-Prefix.pch
│ ├── Tests.m
│ └── Tests-Info.plist
├── ParallaxBlur
│ ├── en.lproj
│ │ └── InfoPlist.strings
│ ├── awesome.jpg
│ ├── meatballs.jpeg
│ ├── Images.xcassets
│ │ ├── placeholder.imageset
│ │ │ ├── placeholder.png
│ │ │ └── Contents.json
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ └── LaunchImage.launchimage
│ │ │ └── Contents.json
│ ├── CustomHeaderViewController.h
│ ├── JPBViewController.h
│ ├── JPBAppDelegate.h
│ ├── main.m
│ ├── ParallaxBlur-Prefix.pch
│ ├── ParallaxBlur-Info.plist
│ ├── Base.lproj
│ │ ├── Main_iPad.storyboard
│ │ └── Main_iPhone.storyboard
│ ├── JPBViewController.m
│ ├── JPBAppDelegate.m
│ └── CustomHeaderViewController.m
├── ParallaxBlur.xcodeproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── ParallaxBlur.xcscheme
│ └── project.pbxproj
└── Podfile
├── .travis.yml
├── .gitignore
├── ParallaxBlur.podspec
├── LICENSE
└── README.md
/Pod/Assets/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Pod/Classes/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/asplode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pyro2927/ParallaxBlur/HEAD/asplode.png
--------------------------------------------------------------------------------
/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pyro2927/ParallaxBlur/HEAD/preview.gif
--------------------------------------------------------------------------------
/Example/Tests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/awesome.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pyro2927/ParallaxBlur/HEAD/Example/ParallaxBlur/awesome.jpg
--------------------------------------------------------------------------------
/Example/ParallaxBlur/meatballs.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pyro2927/ParallaxBlur/HEAD/Example/ParallaxBlur/meatballs.jpeg
--------------------------------------------------------------------------------
/Example/ParallaxBlur/Images.xcassets/placeholder.imageset/placeholder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pyro2927/ParallaxBlur/HEAD/Example/ParallaxBlur/Images.xcassets/placeholder.imageset/placeholder.png
--------------------------------------------------------------------------------
/Example/ParallaxBlur.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | # reference: http://www.objc.io/issue-6/travis-ci.html
2 |
3 | language: objective-c
4 | before_install: cd Example && pod install && cd -
5 | script:
6 | - xctool test -workspace Example/ParallaxBlur.xcworkspace -scheme ParallaxBlur -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
7 |
--------------------------------------------------------------------------------
/Example/Podfile:
--------------------------------------------------------------------------------
1 | target 'ParallaxBlur', :exclusive => true do
2 | pod "ParallaxBlur", :path => "../"
3 | end
4 |
5 | target 'Tests', :exclusive => true do
6 | pod "ParallaxBlur", :path => "../"
7 |
8 | pod 'Specta', '~> 0.2.1'
9 | pod 'Expecta'
10 | pod 'FBSnapshotTestCase'
11 | pod 'Expecta+Snapshots'
12 | end
13 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/CustomHeaderViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // CustomHeaderViewController.h
3 | // ParallaxBlur
4 | //
5 | // Created by Joseph Pintozzi on 8/26/14.
6 | // Copyright (c) 2014 pyro2927. All rights reserved.
7 | //
8 |
9 | #import "JPBParallaxBlurViewController.h"
10 |
11 | @interface CustomHeaderViewController : JPBParallaxBlurViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/JPBViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // JPBViewController.h
3 | // ParallaxBlur
4 | //
5 | // Created by pyro2927 on 08/22/2014.
6 | // Copyright (c) 2014 pyro2927. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "JPBFloatingTextViewController.h"
11 |
12 | @interface JPBViewController : JPBFloatingTextViewController
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/Images.xcassets/placeholder.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x",
6 | "filename" : "placeholder.png"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | }
12 | ],
13 | "info" : {
14 | "version" : 1,
15 | "author" : "xcode"
16 | }
17 | }
--------------------------------------------------------------------------------
/Example/ParallaxBlur/JPBAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // JPBAppDelegate.h
3 | // ParallaxBlur
4 | //
5 | // Created by CocoaPods on 08/22/2014.
6 | // Copyright (c) 2014 pyro2927. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface JPBAppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Pod/Classes/JPBParallaxTableViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ParallaxTableViewController.h
3 | // Pods
4 | //
5 | // Created by Joseph Pintozzi on 8/22/14.
6 | //
7 | //
8 |
9 | #import "JPBParallaxBlurViewController.h"
10 |
11 | @interface JPBParallaxTableViewController : JPBParallaxBlurViewController
12 |
13 | @property (readonly) UITableView *tableView;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Example/Tests/Tests-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every test case source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 |
9 | #define EXP_SHORTHAND
10 | #import
11 | #import
12 | #import
13 | #import
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OS X
2 | .DS_Store
3 |
4 | # Xcode
5 | build/
6 | *.pbxuser
7 | !default.pbxuser
8 | *.mode1v3
9 | !default.mode1v3
10 | *.mode2v3
11 | !default.mode2v3
12 | *.perspectivev3
13 | !default.perspectivev3
14 | xcuserdata
15 | *.xccheckout
16 | profile
17 | *.moved-aside
18 | DerivedData
19 | *.hmap
20 | *.ipa
21 |
22 | # Bundler
23 | .bundle
24 |
25 | Example/ParallaxBlur.xcworkspace/
26 | Example/Podfile.lock
27 | Example/Pods/
28 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // ParallaxBlur
4 | //
5 | // Created by pyro2927 on 08/22/2014.
6 | // Copyright (c) 2014 pyro2927. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "JPBAppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([JPBAppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/ParallaxBlur-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 |
--------------------------------------------------------------------------------
/Example/Tests/Tests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ParallaxBlurTests.m
3 | // ParallaxBlurTests
4 | //
5 | // Created by pyro2927 on 08/22/2014.
6 | // Copyright (c) 2014 pyro2927. All rights reserved.
7 | //
8 |
9 | #import "JPBFloatingTextViewController.h"
10 |
11 | SpecBegin(InitialSpecs)
12 |
13 | describe(@"these will pass", ^{
14 |
15 | it(@"can initialize", ^{
16 | expect([[JPBFloatingTextViewController alloc] init]).notTo.beNil();
17 | });
18 |
19 | });
20 |
21 | SpecEnd
22 |
--------------------------------------------------------------------------------
/Pod/Classes/JPBFloatingTextViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // JPBFloatingTextViewController.h
3 | // Pods
4 | //
5 | // Created by Joseph Pintozzi on 8/22/14.
6 | //
7 | //
8 |
9 | #import "JPBParallaxTableViewController.h"
10 |
11 | @interface JPBFloatingTextViewController : JPBParallaxTableViewController
12 |
13 | - (void)setTitleText:(NSString*)text;
14 | - (void)setSubtitleText:(NSString*)text;
15 | - (void)selLabelBackground:(UIColor*)color;
16 | - (void)setLabelBackgroundGradientColor:(UIColor*)bottomColor;
17 | - (void)setTitleFont:(UIFont*)font;
18 | - (void)setSubtitleFont:(UIFont*)font;
19 | - (void)setTitleTextColor:(UIColor*)color;
20 | - (void)setSubtitleTextColor:(UIColor*)color;
21 | - (CGFloat)horizontalOffset;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/Example/Tests/Tests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | org.cocoapods.demo.${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 |
--------------------------------------------------------------------------------
/ParallaxBlur.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |s|
2 | s.name = "ParallaxBlur"
3 | s.version = "0.1.4"
4 | s.summary = "Easy to subclass parallax UITableController w/ blurring image header, floating header, and UIScrollView for content"
5 | s.homepage = "https://github.com/pyro2927/ParallaxBlur"
6 | s.screenshots = "https://raw.githubusercontent.com/pyro2927/ParallaxBlur/master/preview.gif"
7 | s.license = 'MIT'
8 | s.author = { "pyro2927" => "joseph@pintozzi.com" }
9 | s.source = { :git => "https://github.com/pyro2927/ParallaxBlur.git", :tag => s.version.to_s }
10 | s.social_media_url = 'https://twitter.com/pyro2927'
11 |
12 | s.platform = :ios, '7.0'
13 | s.requires_arc = true
14 |
15 | s.source_files = 'Pod/Classes'
16 |
17 | s.public_header_files = 'Pod/Classes/**/*.h'
18 | s.dependency 'FXBlurView', '~> 1.6.2'
19 | end
20 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/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 | "idiom" : "ipad",
20 | "size" : "29x29",
21 | "scale" : "1x"
22 | },
23 | {
24 | "idiom" : "ipad",
25 | "size" : "29x29",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "ipad",
30 | "size" : "40x40",
31 | "scale" : "1x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "40x40",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "76x76",
41 | "scale" : "1x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "76x76",
46 | "scale" : "2x"
47 | }
48 | ],
49 | "info" : {
50 | "version" : 1,
51 | "author" : "xcode"
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014 pyro2927
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Pod/Classes/JPBParallaxBlurViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ParallaxBlurViewController.h
3 | // Pods
4 | //
5 | // Created by Joseph Pintozzi on 8/22/14.
6 | //
7 | //
8 |
9 | #import
10 |
11 | @protocol JPBParallaxBlurInteractionsDelegate;
12 |
13 | @interface JPBParallaxBlurViewController : UIViewController
14 |
15 | - (void)setHeaderImage:(UIImage*)headerImage;
16 | - (void)addHeaderOverlayView:(UIView*)overlay;
17 | - (CGFloat)headerHeight;
18 | - (UIScrollView*)mainScrollView;
19 |
20 | /**
21 | * This should be called whenever the content size of the scrollview need to be adjusted.
22 | */
23 | - (void)setNeedsScrollViewAppearanceUpdate;
24 |
25 | @property (weak, nonatomic, readwrite) id interactionsDelegate;
26 |
27 | @end
28 |
29 | ///-------------------------------------------------------------------------------------------------------
30 | /// Interactions Delegate
31 | ///-------------------------------------------------------------------------------------------------------
32 |
33 | @protocol JPBParallaxBlurInteractionsDelegate
34 |
35 | @optional
36 |
37 | /**
38 | Called when the header imageview is tapped.
39 | */
40 | - (void)didTapHeaderImageView:(UIImageView*)imageView;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/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 | "orientation" : "portrait",
20 | "idiom" : "ipad",
21 | "extent" : "full-screen",
22 | "minimum-system-version" : "7.0",
23 | "scale" : "1x"
24 | },
25 | {
26 | "orientation" : "landscape",
27 | "idiom" : "ipad",
28 | "extent" : "full-screen",
29 | "minimum-system-version" : "7.0",
30 | "scale" : "1x"
31 | },
32 | {
33 | "orientation" : "portrait",
34 | "idiom" : "ipad",
35 | "extent" : "full-screen",
36 | "minimum-system-version" : "7.0",
37 | "scale" : "2x"
38 | },
39 | {
40 | "orientation" : "landscape",
41 | "idiom" : "ipad",
42 | "extent" : "full-screen",
43 | "minimum-system-version" : "7.0",
44 | "scale" : "2x"
45 | }
46 | ],
47 | "info" : {
48 | "version" : 1,
49 | "author" : "xcode"
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/Pod/Classes/JPBParallaxTableViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ParallaxTableViewController.m
3 | // Pods
4 | //
5 | // Created by Joseph Pintozzi on 8/22/14.
6 | //
7 | //
8 |
9 | #import "JPBParallaxTableViewController.h"
10 |
11 | @interface JPBParallaxTableViewController (){
12 | UITableView *_tableView;
13 | }
14 |
15 | @end
16 |
17 | @implementation JPBParallaxTableViewController
18 |
19 | - (void)viewDidLoad{
20 | [super viewDidLoad];
21 | }
22 |
23 | - (UITableView *)tableView{
24 | if (!_tableView) {
25 | _tableView = [[UITableView alloc] initWithFrame:CGRectZero];
26 | _tableView.scrollEnabled = NO;
27 | _tableView.delegate = self;
28 | _tableView.dataSource = self;
29 | }
30 | return _tableView;
31 | }
32 |
33 | - (UIScrollView *)contentView{
34 | return [self tableView];
35 | }
36 |
37 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
38 | UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"Cell"];
39 | cell.textLabel.text = @"Override me";
40 | cell.detailTextLabel.text = @"Please...";
41 | return cell;
42 | }
43 |
44 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
45 | return 1;
46 | }
47 |
48 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
49 | return 1;
50 | }
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/ParallaxBlur-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | org.cocoapods.demo.${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_iPhone
29 | UIMainStoryboardFile~ipad
30 | Main_iPad
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeLeft
39 | UIInterfaceOrientationLandscapeRight
40 |
41 | UISupportedInterfaceOrientations~ipad
42 |
43 | UIInterfaceOrientationPortrait
44 | UIInterfaceOrientationPortraitUpsideDown
45 | UIInterfaceOrientationLandscapeLeft
46 | UIInterfaceOrientationLandscapeRight
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/Base.lproj/Main_iPad.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 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/JPBViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // JPBViewController.m
3 | // ParallaxBlur
4 | //
5 | // Created by pyro2927 on 08/22/2014.
6 | // Copyright (c) 2014 pyro2927. All rights reserved.
7 | //
8 |
9 | #import "JPBViewController.h"
10 |
11 | @interface JPBViewController ()
12 |
13 | @end
14 |
15 | @implementation JPBViewController
16 |
17 | - (void)viewDidLoad
18 | {
19 | self.navigationController.navigationBar.translucent = YES;
20 | [super viewDidLoad];
21 | // Do any additional setup after loading the view, typically from a nib.
22 | [self setHeaderImage:[UIImage imageNamed:@"meatballs.jpeg"]];
23 | [self setTitleText:@"The Best Title in the World"];
24 | [self setSubtitleText:@"ikea meatballs are the bomb"];
25 | [self setLabelBackgroundGradientColor:[UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:0.7f]];
26 | [self setInteractionsDelegate:self];
27 |
28 | CGFloat headerHeight = [self headerHeight];
29 |
30 | UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(5, headerHeight - 55, 44, 44)];
31 | [button setTitle:@"Tap" forState:UIControlStateNormal];
32 | [button addTarget:self action:@selector(alert:) forControlEvents:UIControlEventTouchUpInside];
33 | [self addHeaderOverlayView:button];
34 | }
35 |
36 | - (void)alert:(UIButton*)sender{
37 | [[[UIAlertView alloc] initWithTitle:@"Alert" message:@"You can even add buttons to the header!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:@":)", nil] show];
38 | }
39 |
40 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
41 | return 30; //helps for testing scrolling on iPad
42 | }
43 |
44 | - (CGFloat)horizontalOffset{
45 | return 50.0f;
46 | }
47 |
48 | - (void)didTapHeaderImageView:(UIImageView *)imageView
49 | {
50 | NSLog(@"The header imageview was tapped: %@", imageView.description);
51 | }
52 |
53 | @end
54 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/JPBAppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // JPBAppDelegate.m
3 | // ParallaxBlur
4 | //
5 | // Created by CocoaPods on 08/22/2014.
6 | // Copyright (c) 2014 pyro2927. All rights reserved.
7 | //
8 |
9 | #import "JPBAppDelegate.h"
10 |
11 | @implementation JPBAppDelegate
12 |
13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14 | {
15 | // Override point for customization after application launch.
16 | return YES;
17 | }
18 |
19 | - (void)applicationWillResignActive:(UIApplication *)application
20 | {
21 | // 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.
22 | // 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.
23 | }
24 |
25 | - (void)applicationDidEnterBackground:(UIApplication *)application
26 | {
27 | // 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.
28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
29 | }
30 |
31 | - (void)applicationWillEnterForeground:(UIApplication *)application
32 | {
33 | // 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.
34 | }
35 |
36 | - (void)applicationDidBecomeActive:(UIApplication *)application
37 | {
38 | // 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.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application
42 | {
43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
44 | }
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/CustomHeaderViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // CustomHeaderViewController.m
3 | // ParallaxBlur
4 | //
5 | // Created by Joseph Pintozzi on 8/26/14.
6 | // Copyright (c) 2014 pyro2927. All rights reserved.
7 | //
8 |
9 | #import "CustomHeaderViewController.h"
10 |
11 | @interface CustomHeaderViewController (){
12 | UIImageView *imageView;
13 | UITextView *textView;
14 | }
15 |
16 | @end
17 |
18 | @implementation CustomHeaderViewController
19 |
20 | - (void)viewDidLoad
21 | {
22 | self.navigationController.navigationBar.translucent = NO;
23 | [super viewDidLoad];
24 | // Do any additional setup after loading the view, typically from a nib.
25 | [self setHeaderImage:[UIImage imageNamed:@"placeholder"]];
26 | imageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, [self headerHeight] - 100, 90, 90)];
27 | [imageView setImage:[UIImage imageNamed:@"awesome.jpg"]];
28 | [self addHeaderOverlayView:imageView];
29 | }
30 |
31 | - (UIScrollView*)contentView{
32 | textView = [[UITextView alloc] initWithFrame:CGRectZero];
33 | textView.scrollEnabled = NO;
34 | textView.editable = NO;
35 | textView.text = @"Yeah, I like animals better than people sometimes... Especially dogs. Dogs are the best. Every time you come home, they act like they haven't seen you in a year. And the good thing about dogs... is they got different dogs for different people. Like pit bulls. The dog of dogs. Pit bull can be the right man's best friend... or the wrong man's worst enemy. You going to give me a dog for a pet, give me a pit bull. Give me... Raoul. Right, Omar? Give me Raoul.\n\nWell, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing.\n\nWell, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing.\n\nNow that we know who you are, I know who I am. I'm not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids.\n\n";
36 | textView.contentSize = CGSizeMake(CGRectGetWidth(self.view.frame), 600);
37 | return textView;
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/Pod/Classes/JPBFloatingTextViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // JPBFloatingTextViewController.m
3 | // Pods
4 | //
5 | // Created by Joseph Pintozzi on 8/22/14.
6 | //
7 | //
8 |
9 | #import "JPBFloatingTextViewController.h"
10 |
11 | @interface JPBFloatingTextViewController () {
12 | UILabel *_titleLabel;
13 | UILabel *_subtitleLabel;
14 | UIView *_labelBackground;
15 | }
16 |
17 | @end
18 |
19 | @implementation JPBFloatingTextViewController
20 |
21 | - (void)viewDidLoad{
22 | [super viewDidLoad];
23 |
24 | _labelBackground = [[UIView alloc] initWithFrame:CGRectMake(0, [self headerHeight] - 60, self.view.frame.size.width, 60)];
25 | [self addHeaderOverlayView:_labelBackground];
26 |
27 | _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake([self horizontalOffset], [self headerHeight] - 50, self.view.frame.size.width - 15 - [self horizontalOffset], 25)];
28 | [_titleLabel setBackgroundColor:[UIColor clearColor]];
29 | [_titleLabel setTextColor:[UIColor whiteColor]];
30 | [_titleLabel setFont:[UIFont boldSystemFontOfSize:20]];
31 | [_titleLabel setAutoresizingMask:UIViewAutoresizingFlexibleTopMargin];
32 | [self addHeaderOverlayView:_titleLabel];
33 |
34 | _subtitleLabel = [[UILabel alloc] initWithFrame:CGRectMake([self horizontalOffset], [self headerHeight] - 25, self.view.frame.size.width - 15 - [self horizontalOffset], 15)];
35 | [_subtitleLabel setBackgroundColor:[UIColor clearColor]];
36 | [_subtitleLabel setTextColor:[UIColor whiteColor]];
37 | [_subtitleLabel setFont:[UIFont systemFontOfSize:12]];
38 | [_subtitleLabel setAutoresizingMask:UIViewAutoresizingFlexibleTopMargin];
39 | [self addHeaderOverlayView:_subtitleLabel];
40 | }
41 |
42 | - (CGFloat)horizontalOffset{
43 | return 15.0f;
44 | }
45 |
46 | - (void)setTitleText:(NSString*)text{
47 | [_titleLabel setText:text];
48 | }
49 |
50 | - (void)setSubtitleText:(NSString*)text{
51 | [_subtitleLabel setText:text];
52 | }
53 |
54 | - (void)selLabelBackground:(UIColor*)color{
55 | _labelBackground.backgroundColor = color;
56 | }
57 |
58 |
59 | - (void)setTitleFont:(UIFont*)font{
60 | [_titleLabel setFont:font];
61 |
62 | }
63 |
64 | - (void)setSubtitleFont:(UIFont*)font{
65 | [_subtitleLabel setFont:font];
66 |
67 | }
68 |
69 | - (void)setTitleTextColor:(UIColor*)color{
70 | [_titleLabel setTextColor:color];
71 |
72 | }
73 |
74 |
75 | - (void)setSubtitleTextColor:(UIColor*)color{
76 | [_subtitleLabel setTextColor:color];
77 |
78 | }
79 |
80 | - (void)setLabelBackgroundGradientColor:(UIColor*)bottomColor{
81 | //build gradient with top clear
82 | UIColor *topColor = [UIColor clearColor];
83 | NSArray *gradientColors = [NSArray arrayWithObjects:(id)topColor.CGColor, (id)bottomColor.CGColor, nil];
84 | NSArray *gradientLocations = [NSArray arrayWithObjects:[NSNumber numberWithInt:0.0],[NSNumber numberWithInt:1.0], nil];
85 | CAGradientLayer *gradientLayer = [CAGradientLayer layer];
86 | gradientLayer.colors = gradientColors;
87 | gradientLayer.locations = gradientLocations;
88 | gradientLayer.frame = CGRectMake(0, 0, CGRectGetWidth(_labelBackground.frame), CGRectGetHeight(_labelBackground.frame));
89 |
90 | [_labelBackground.layer insertSublayer:gradientLayer atIndex:0];
91 | }
92 |
93 | @end
94 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ParallaxBlur
2 |
3 | [](https://travis-ci.org/pyro2927/ParallaxBlur)
4 | [](http://cocoadocs.org/docsets/ParallaxBlur)
5 | [](http://cocoadocs.org/docsets/ParallaxBlur)
6 | [](http://cocoadocs.org/docsets/ParallaxBlur)
7 |
8 | ParallaxBlur aims the be an easy-to-use implementation of a UITableController with a parallax header. It is screen resolution independant, orientation indendant, and will automatically adjust if there is a navigation bar in place.
9 |
10 | The user interaction is fairly straightforward. The header image blurs as you scroll up, leaving a 60 pixel area always visible, and expands out the header image if you pull down, while at the same time making the overlay views transparent.
11 |
12 | Developed at [Software for Good](http://sfg.io).
13 |
14 | 
15 |
16 | Inspiration was taken from Aaron Pang's [SecretViewer](https://github.com/aaronpang/SecretViewer). I liked the way it looked and behaved, but it wasn't extremely customizable, and not setup to be used as a Pod.
17 |
18 | ## Basic Usage
19 |
20 | Usage is pretty simple. Subclass `JPBFloatingTextViewController` and then customize it within `viewDidLoad`:
21 |
22 | [self setHeaderImage:[UIImage imageNamed:@"meatballs.jpeg"]];
23 | [self setTitleText:@"The Best Title in the World"];
24 | [self setSubtitleText:@"ikea meatballs are the bomb"];
25 |
26 | You should override the required `UITableViewDatasource` and `UITableViewDelegate` methods to supply the content section with cells and handle user selections.
27 |
28 | ## Advanced Usage
29 |
30 | You can also more heavily customize the header by using `addHeaderOverlayView:`. Using this will add the passed `UIView` to the scrolling header. An example can be seen in `CustomHeaderViewController.m`. You can get the height of the header (useful for getting things to align near the bottom) by calling `[self headerHeight]`.
31 |
32 | imageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, [self headerHeight] - 100, 90, 90)];
33 | [imageView setImage:[UIImage imageNamed:@"awesome.jpg"]];
34 | [self addHeaderOverlayView:imageView];
35 |
36 | ## Loading Images Asynchronously
37 |
38 | If you want to load remote images, I'd recommend using [SDWebImage](https://github.com/rs/SDWebImage). Example for using it with ParallaxBlur:
39 |
40 | [[SDWebImageManager sharedManager] downloadImageWithURL:headerImageURL options:0 progress:^(NSInteger receivedSize, NSInteger expectedSize) {
41 | //Track progress if you wish
42 | } completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
43 | if (finished) {
44 | [self setHeaderImage:image];
45 | }
46 | }];
47 |
48 | ## Geeky Stuff
49 |
50 | 
51 |
52 | The view controller manages three `UIScrollViews`, one for the header/background, one for the lower content, and an "main" one to handle user interactions and delegate callbacks. The image "blurring" is just a gradual change in a secondary image overlay's alpha, which is a blurred version of the image set, precalculated and run through `FXBlurView`.
53 |
54 | ## Example
55 |
56 | To run the example project, clone the repo, and run `pod install` from the Example directory first.
57 |
58 | ## Requirements
59 |
60 | iOS 7.0 or higher.
61 |
62 | ## Installation
63 |
64 | ParallaxBlur is available through [CocoaPods](http://cocoapods.org). To install
65 | it, simply add the following line to your Podfile:
66 |
67 | pod "ParallaxBlur"
68 |
69 | ## Author
70 |
71 | pyro2927, joseph@pintozzi.com
72 |
73 | ## License
74 |
75 | ParallaxBlur is available under the MIT license. See the LICENSE file for more info.
76 |
77 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur.xcodeproj/xcshareddata/xcschemes/ParallaxBlur.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/Pod/Classes/JPBParallaxBlurViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ParallaxBlurViewController.m
3 | // Pods
4 | //
5 | // Created by Joseph Pintozzi on 8/22/14.
6 | //
7 | //
8 |
9 | #import "JPBParallaxBlurViewController.h"
10 | #import "FXBlurView.h"
11 |
12 | @interface JPBParallaxBlurViewController () {
13 | UIScrollView *_mainScrollView;
14 | UIScrollView *_backgroundScrollView;
15 | UIView *_floatingHeaderView;
16 | UIImageView *_headerImageView;
17 | UIImageView *_blurredImageView;
18 | UIImage *_originalImageView;
19 | UIView *_scrollViewContainer;
20 | UIScrollView *_contentView;
21 |
22 | NSMutableArray *_headerOverlayViews;
23 | }
24 | @end
25 |
26 | @implementation JPBParallaxBlurViewController
27 |
28 | static CGFloat INVIS_DELTA = 50.0f;
29 | static CGFloat BLUR_DISTANCE = 200.0f;
30 | static CGFloat HEADER_HEIGHT = 60.0f;
31 | static CGFloat IMAGE_HEIGHT = 320.0f;
32 |
33 | -(void)viewDidLoad{
34 | [super viewDidLoad];
35 |
36 | _headerOverlayViews = [NSMutableArray array];
37 |
38 | _mainScrollView = [[UIScrollView alloc] initWithFrame:self.view.frame];
39 | _mainScrollView.delegate = self;
40 | _mainScrollView.bounces = YES;
41 | _mainScrollView.alwaysBounceVertical = YES;
42 | _mainScrollView.contentSize = CGSizeMake(self.view.frame.size.width, 1000);
43 | _mainScrollView.showsVerticalScrollIndicator = YES;
44 | _mainScrollView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
45 | _mainScrollView.autoresizesSubviews = YES;
46 | self.view = _mainScrollView;
47 |
48 | _backgroundScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame), IMAGE_HEIGHT)];
49 | _backgroundScrollView.scrollEnabled = NO;
50 | _backgroundScrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
51 | _backgroundScrollView.autoresizesSubviews = YES;
52 | _backgroundScrollView.contentSize = CGSizeMake(self.view.frame.size.width, 1000);
53 | _headerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(_backgroundScrollView.frame), CGRectGetHeight(_backgroundScrollView.frame))];
54 | _headerImageView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
55 | [_headerImageView setContentMode:UIViewContentModeScaleAspectFill];
56 | _headerImageView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
57 | [_headerImageView addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(headerImageTapped:)]];
58 | [_headerImageView setUserInteractionEnabled:YES];
59 | [_backgroundScrollView addSubview:_headerImageView];
60 |
61 | _blurredImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(_backgroundScrollView.frame), CGRectGetHeight(_backgroundScrollView.frame))];
62 | [_blurredImageView setContentMode:UIViewContentModeScaleAspectFill];
63 | _blurredImageView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
64 | [_blurredImageView setAlpha:0.0f];
65 | [_blurredImageView addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(headerImageTapped:)]];
66 | [_blurredImageView setUserInteractionEnabled:YES];
67 |
68 | _floatingHeaderView = [[UIView alloc] initWithFrame:_backgroundScrollView.frame];
69 | [_floatingHeaderView setBackgroundColor:[UIColor clearColor]];
70 | [_floatingHeaderView setUserInteractionEnabled:NO];
71 |
72 | [_backgroundScrollView addSubview:_blurredImageView];
73 |
74 | _scrollViewContainer = [[UIView alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(_backgroundScrollView.frame), CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame) - [self offsetHeight] )];
75 | _scrollViewContainer.autoresizingMask = UIViewAutoresizingFlexibleWidth;
76 |
77 | _contentView = [self contentView];
78 | _contentView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
79 | [_scrollViewContainer addSubview:_contentView];
80 |
81 | [_mainScrollView addSubview:_backgroundScrollView];
82 | [_mainScrollView addSubview:_floatingHeaderView];
83 | [_mainScrollView addSubview:_scrollViewContainer];
84 | }
85 |
86 | - (void)viewWillAppear:(BOOL)animated {
87 | [super viewWillAppear:animated];
88 | [_contentView setFrame:CGRectMake(0, 0, CGRectGetWidth(_scrollViewContainer.frame), CGRectGetHeight(self.view.frame) - [self offsetHeight] )];
89 | }
90 |
91 | - (void)viewDidAppear:(BOOL)animated{
92 | [super viewDidAppear:animated];
93 | [self setNeedsScrollViewAppearanceUpdate];
94 | }
95 |
96 | - (void)setNeedsScrollViewAppearanceUpdate
97 | {
98 | _mainScrollView.contentSize = CGSizeMake(CGRectGetWidth(self.view.frame), _contentView.contentSize.height + CGRectGetHeight(_backgroundScrollView.frame));
99 | }
100 |
101 | - (CGFloat)navBarHeight{
102 | if (self.navigationController && !self.navigationController.navigationBarHidden && self.navigationController.navigationBar.translucent) {
103 | return CGRectGetHeight(self.navigationController.navigationBar.frame) + 20; //include 20 for the status bar
104 | }
105 | return 0.0f;
106 | }
107 |
108 | - (CGFloat)offsetHeight{
109 | return HEADER_HEIGHT + [self navBarHeight];
110 | }
111 |
112 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
113 | CGFloat delta = 0.0f;
114 | CGRect rect = CGRectMake(0, 0, CGRectGetWidth(_scrollViewContainer.frame), IMAGE_HEIGHT);
115 |
116 | CGFloat backgroundScrollViewLimit = _backgroundScrollView.frame.size.height - [self offsetHeight];
117 |
118 |
119 | // Here is where I do the "Zooming" image and the quick fade out the text and toolbar
120 | if (scrollView.contentOffset.y < 0.0f) {
121 | //calculate delta
122 | delta = fabs(MIN(0.0f, _mainScrollView.contentOffset.y + [self navBarHeight]));
123 | _backgroundScrollView.frame = CGRectMake(CGRectGetMinX(rect) - delta / 2.0f, CGRectGetMinY(rect) - delta, CGRectGetWidth(_scrollViewContainer.frame) + delta, CGRectGetHeight(rect) + delta);
124 | [_floatingHeaderView setAlpha:(INVIS_DELTA - delta) / INVIS_DELTA];
125 | } else {
126 | delta = _mainScrollView.contentOffset.y;
127 |
128 | //set alfas
129 | CGFloat newAlpha = 1 - ((BLUR_DISTANCE - delta)/ BLUR_DISTANCE);
130 | [_blurredImageView setAlpha:newAlpha];
131 | [_floatingHeaderView setAlpha:1];
132 |
133 | // Here I check whether or not the user has scrolled passed the limit where I want to stick the header, if they have then I move the frame with the scroll view
134 | // to give it the sticky header look
135 | if (delta > backgroundScrollViewLimit) {
136 | _backgroundScrollView.frame = (CGRect) {.origin = {0, delta - _backgroundScrollView.frame.size.height + [self offsetHeight]}, .size = {CGRectGetWidth(_scrollViewContainer.frame), IMAGE_HEIGHT}};
137 | _floatingHeaderView.frame = (CGRect) {.origin = {0, delta - _floatingHeaderView.frame.size.height + [self offsetHeight]}, .size = {CGRectGetWidth(_scrollViewContainer.frame), IMAGE_HEIGHT}};
138 | _scrollViewContainer.frame = (CGRect){.origin = {0, CGRectGetMinY(_backgroundScrollView.frame) + CGRectGetHeight(_backgroundScrollView.frame)}, .size = _scrollViewContainer.frame.size };
139 | _contentView.contentOffset = CGPointMake (0, delta - backgroundScrollViewLimit);
140 | CGFloat contentOffsetY = -backgroundScrollViewLimit * 0.5f;
141 | [_backgroundScrollView setContentOffset:(CGPoint){0,contentOffsetY} animated:NO];
142 | }
143 | else {
144 | _backgroundScrollView.frame = rect;
145 | _floatingHeaderView.frame = rect;
146 | _scrollViewContainer.frame = (CGRect){.origin = {0, CGRectGetMinY(rect) + CGRectGetHeight(rect)}, .size = _scrollViewContainer.frame.size };
147 | [_contentView setContentOffset:(CGPoint){0,0} animated:NO];
148 | [_backgroundScrollView setContentOffset:CGPointMake(0, -delta * 0.5f)animated:NO];
149 | }
150 | }
151 | }
152 |
153 | - (UIScrollView*)contentView{
154 | UIScrollView *contentView = [[UIScrollView alloc] initWithFrame:CGRectZero];
155 | contentView.scrollEnabled = NO;
156 | return contentView;
157 | }
158 |
159 | - (void)setHeaderImage:(UIImage*)headerImage{
160 | _originalImageView = headerImage;
161 | [_headerImageView setImage:headerImage];
162 | [_blurredImageView setImage:[headerImage blurredImageWithRadius:40.0f iterations:4 tintColor:[UIColor clearColor]]];
163 | }
164 |
165 | - (void)addHeaderOverlayView:(UIView*)overlay{
166 | [_headerOverlayViews addObject:overlay];
167 | [_floatingHeaderView addSubview:overlay];
168 | }
169 |
170 | - (CGFloat)headerHeight{
171 | return CGRectGetHeight(_backgroundScrollView.frame);
172 | }
173 |
174 | - (UIScrollView*)mainScrollView{
175 | return _mainScrollView;
176 | }
177 |
178 | - (void)headerImageTapped:(UITapGestureRecognizer*)tapGesture
179 | {
180 | if ([self.interactionsDelegate respondsToSelector:@selector(didTapHeaderImageView:)]) {
181 | [self.interactionsDelegate didTapHeaderImageView:_headerImageView];
182 | }
183 | }
184 |
185 | @end
186 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur/Base.lproj/Main_iPhone.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 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
--------------------------------------------------------------------------------
/Example/ParallaxBlur.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 2FEA8204FC254DDA948F672D /* libPods-ParallaxBlur.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F6C2828351AF479C837BB38A /* libPods-ParallaxBlur.a */; };
11 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
12 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
13 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
14 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; };
15 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; };
16 | 6003F59E195388D20070C39A /* JPBAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* JPBAppDelegate.m */; };
17 | 6003F5A1195388D20070C39A /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6003F59F195388D20070C39A /* Main_iPhone.storyboard */; };
18 | 6003F5A4195388D20070C39A /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A2195388D20070C39A /* Main_iPad.storyboard */; };
19 | 6003F5A7195388D20070C39A /* JPBViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* JPBViewController.m */; };
20 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; };
21 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; };
22 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
23 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
24 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
25 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; };
26 | C6BAB5FA24CE4C30A26D94C0 /* libPods-Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 05B20A197B0A467B97472543 /* libPods-Tests.a */; };
27 | D85B254A19ACE9D000C8F2AA /* CustomHeaderViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D85B254919ACE9D000C8F2AA /* CustomHeaderViewController.m */; };
28 | D85B254C19ACEA3400C8F2AA /* awesome.jpg in Resources */ = {isa = PBXBuildFile; fileRef = D85B254B19ACEA3400C8F2AA /* awesome.jpg */; };
29 | D86AEC5719A7C61B00D714AA /* meatballs.jpeg in Resources */ = {isa = PBXBuildFile; fileRef = D86AEC5619A7C61B00D714AA /* meatballs.jpeg */; };
30 | /* End PBXBuildFile section */
31 |
32 | /* Begin PBXContainerItemProxy section */
33 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = {
34 | isa = PBXContainerItemProxy;
35 | containerPortal = 6003F582195388D10070C39A /* Project object */;
36 | proxyType = 1;
37 | remoteGlobalIDString = 6003F589195388D20070C39A;
38 | remoteInfo = ParallaxBlur;
39 | };
40 | /* End PBXContainerItemProxy section */
41 |
42 | /* Begin PBXFileReference section */
43 | 05B20A197B0A467B97472543 /* libPods-Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 25175DF437024927A43A8F3C /* Pods-Tests.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.xcconfig"; path = "Pods/Pods-Tests.xcconfig"; sourceTree = ""; };
45 | 54C25E9FC8C34AA287F55684 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = README.md; path = ../README.md; sourceTree = ""; };
46 | 56AE53E40AD24FB588540B6D /* ParallaxBlur.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = ParallaxBlur.podspec; path = ../ParallaxBlur.podspec; sourceTree = ""; };
47 | 57A076E32CA64AD09474D7B9 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; };
48 | 6003F58A195388D20070C39A /* ParallaxBlur.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ParallaxBlur.app; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
50 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
51 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
52 | 6003F595195388D20070C39A /* ParallaxBlur-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ParallaxBlur-Info.plist"; sourceTree = ""; };
53 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
54 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
55 | 6003F59B195388D20070C39A /* ParallaxBlur-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ParallaxBlur-Prefix.pch"; sourceTree = ""; };
56 | 6003F59C195388D20070C39A /* JPBAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = JPBAppDelegate.h; sourceTree = ""; };
57 | 6003F59D195388D20070C39A /* JPBAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JPBAppDelegate.m; sourceTree = ""; };
58 | 6003F5A0195388D20070C39A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = ""; };
59 | 6003F5A3195388D20070C39A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = ""; };
60 | 6003F5A5195388D20070C39A /* JPBViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = JPBViewController.h; sourceTree = ""; };
61 | 6003F5A6195388D20070C39A /* JPBViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JPBViewController.m; sourceTree = ""; };
62 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
63 | 6003F5AE195388D20070C39A /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
64 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
65 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; };
66 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
67 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; };
68 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; };
69 | CF6059F037494BF2A04110BD /* Pods-ParallaxBlur.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ParallaxBlur.xcconfig"; path = "Pods/Pods-ParallaxBlur.xcconfig"; sourceTree = ""; };
70 | D85B254819ACE9D000C8F2AA /* CustomHeaderViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomHeaderViewController.h; sourceTree = ""; };
71 | D85B254919ACE9D000C8F2AA /* CustomHeaderViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomHeaderViewController.m; sourceTree = ""; };
72 | D85B254B19ACEA3400C8F2AA /* awesome.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = awesome.jpg; sourceTree = ""; };
73 | D86AEC5619A7C61B00D714AA /* meatballs.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = meatballs.jpeg; sourceTree = ""; };
74 | F6C2828351AF479C837BB38A /* libPods-ParallaxBlur.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ParallaxBlur.a"; sourceTree = BUILT_PRODUCTS_DIR; };
75 | /* End PBXFileReference section */
76 |
77 | /* Begin PBXFrameworksBuildPhase section */
78 | 6003F587195388D20070C39A /* Frameworks */ = {
79 | isa = PBXFrameworksBuildPhase;
80 | buildActionMask = 2147483647;
81 | files = (
82 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
83 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
84 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
85 | 2FEA8204FC254DDA948F672D /* libPods-ParallaxBlur.a in Frameworks */,
86 | );
87 | runOnlyForDeploymentPostprocessing = 0;
88 | };
89 | 6003F5AB195388D20070C39A /* Frameworks */ = {
90 | isa = PBXFrameworksBuildPhase;
91 | buildActionMask = 2147483647;
92 | files = (
93 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */,
94 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */,
95 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */,
96 | C6BAB5FA24CE4C30A26D94C0 /* libPods-Tests.a in Frameworks */,
97 | );
98 | runOnlyForDeploymentPostprocessing = 0;
99 | };
100 | /* End PBXFrameworksBuildPhase section */
101 |
102 | /* Begin PBXGroup section */
103 | 6003F581195388D10070C39A = {
104 | isa = PBXGroup;
105 | children = (
106 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */,
107 | 6003F593195388D20070C39A /* ParallaxBlur */,
108 | 6003F58C195388D20070C39A /* Frameworks */,
109 | 6003F58B195388D20070C39A /* Products */,
110 | CF6059F037494BF2A04110BD /* Pods-ParallaxBlur.xcconfig */,
111 | 25175DF437024927A43A8F3C /* Pods-Tests.xcconfig */,
112 | );
113 | sourceTree = "";
114 | };
115 | 6003F58B195388D20070C39A /* Products */ = {
116 | isa = PBXGroup;
117 | children = (
118 | 6003F58A195388D20070C39A /* ParallaxBlur.app */,
119 | 6003F5AE195388D20070C39A /* Tests.xctest */,
120 | );
121 | name = Products;
122 | sourceTree = "";
123 | };
124 | 6003F58C195388D20070C39A /* Frameworks */ = {
125 | isa = PBXGroup;
126 | children = (
127 | 6003F58D195388D20070C39A /* Foundation.framework */,
128 | 6003F58F195388D20070C39A /* CoreGraphics.framework */,
129 | 6003F591195388D20070C39A /* UIKit.framework */,
130 | 6003F5AF195388D20070C39A /* XCTest.framework */,
131 | F6C2828351AF479C837BB38A /* libPods-ParallaxBlur.a */,
132 | 05B20A197B0A467B97472543 /* libPods-Tests.a */,
133 | );
134 | name = Frameworks;
135 | sourceTree = "";
136 | };
137 | 6003F593195388D20070C39A /* ParallaxBlur */ = {
138 | isa = PBXGroup;
139 | children = (
140 | 6003F59C195388D20070C39A /* JPBAppDelegate.h */,
141 | 6003F59D195388D20070C39A /* JPBAppDelegate.m */,
142 | 6003F59F195388D20070C39A /* Main_iPhone.storyboard */,
143 | 6003F5A2195388D20070C39A /* Main_iPad.storyboard */,
144 | 6003F5A5195388D20070C39A /* JPBViewController.h */,
145 | 6003F5A6195388D20070C39A /* JPBViewController.m */,
146 | D85B254819ACE9D000C8F2AA /* CustomHeaderViewController.h */,
147 | D85B254919ACE9D000C8F2AA /* CustomHeaderViewController.m */,
148 | D86AEC5619A7C61B00D714AA /* meatballs.jpeg */,
149 | D85B254B19ACEA3400C8F2AA /* awesome.jpg */,
150 | 6003F5B5195388D20070C39A /* Tests */,
151 | 6003F5A8195388D20070C39A /* Images.xcassets */,
152 | 6003F594195388D20070C39A /* Supporting Files */,
153 | );
154 | path = ParallaxBlur;
155 | sourceTree = "";
156 | };
157 | 6003F594195388D20070C39A /* Supporting Files */ = {
158 | isa = PBXGroup;
159 | children = (
160 | 6003F595195388D20070C39A /* ParallaxBlur-Info.plist */,
161 | 6003F596195388D20070C39A /* InfoPlist.strings */,
162 | 6003F599195388D20070C39A /* main.m */,
163 | 6003F59B195388D20070C39A /* ParallaxBlur-Prefix.pch */,
164 | );
165 | name = "Supporting Files";
166 | sourceTree = "";
167 | };
168 | 6003F5B5195388D20070C39A /* Tests */ = {
169 | isa = PBXGroup;
170 | children = (
171 | 6003F5BB195388D20070C39A /* Tests.m */,
172 | 6003F5B6195388D20070C39A /* Supporting Files */,
173 | );
174 | name = Tests;
175 | path = ../Tests;
176 | sourceTree = "";
177 | };
178 | 6003F5B6195388D20070C39A /* Supporting Files */ = {
179 | isa = PBXGroup;
180 | children = (
181 | 6003F5B7195388D20070C39A /* Tests-Info.plist */,
182 | 6003F5B8195388D20070C39A /* InfoPlist.strings */,
183 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */,
184 | );
185 | name = "Supporting Files";
186 | sourceTree = "";
187 | };
188 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = {
189 | isa = PBXGroup;
190 | children = (
191 | 56AE53E40AD24FB588540B6D /* ParallaxBlur.podspec */,
192 | 54C25E9FC8C34AA287F55684 /* README.md */,
193 | 57A076E32CA64AD09474D7B9 /* LICENSE */,
194 | );
195 | name = "Podspec Metadata";
196 | sourceTree = "";
197 | };
198 | /* End PBXGroup section */
199 |
200 | /* Begin PBXNativeTarget section */
201 | 6003F589195388D20070C39A /* ParallaxBlur */ = {
202 | isa = PBXNativeTarget;
203 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "ParallaxBlur" */;
204 | buildPhases = (
205 | 8F284CA2D05E41788921CE5C /* Check Pods Manifest.lock */,
206 | 6003F586195388D20070C39A /* Sources */,
207 | 6003F587195388D20070C39A /* Frameworks */,
208 | 6003F588195388D20070C39A /* Resources */,
209 | 8B3F606355C24932B7665AB4 /* Copy Pods Resources */,
210 | );
211 | buildRules = (
212 | );
213 | dependencies = (
214 | );
215 | name = ParallaxBlur;
216 | productName = ParallaxBlur;
217 | productReference = 6003F58A195388D20070C39A /* ParallaxBlur.app */;
218 | productType = "com.apple.product-type.application";
219 | };
220 | 6003F5AD195388D20070C39A /* Tests */ = {
221 | isa = PBXNativeTarget;
222 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Tests" */;
223 | buildPhases = (
224 | 6E271D7329144D76B677A3E7 /* Check Pods Manifest.lock */,
225 | 6003F5AA195388D20070C39A /* Sources */,
226 | 6003F5AB195388D20070C39A /* Frameworks */,
227 | 6003F5AC195388D20070C39A /* Resources */,
228 | B96932ED9877443E82BE9A14 /* Copy Pods Resources */,
229 | );
230 | buildRules = (
231 | );
232 | dependencies = (
233 | 6003F5B4195388D20070C39A /* PBXTargetDependency */,
234 | );
235 | name = Tests;
236 | productName = ParallaxBlurTests;
237 | productReference = 6003F5AE195388D20070C39A /* Tests.xctest */;
238 | productType = "com.apple.product-type.bundle.unit-test";
239 | };
240 | /* End PBXNativeTarget section */
241 |
242 | /* Begin PBXProject section */
243 | 6003F582195388D10070C39A /* Project object */ = {
244 | isa = PBXProject;
245 | attributes = {
246 | CLASSPREFIX = JPB;
247 | LastUpgradeCheck = 0510;
248 | ORGANIZATIONNAME = pyro2927;
249 | TargetAttributes = {
250 | 6003F5AD195388D20070C39A = {
251 | TestTargetID = 6003F589195388D20070C39A;
252 | };
253 | };
254 | };
255 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "ParallaxBlur" */;
256 | compatibilityVersion = "Xcode 3.2";
257 | developmentRegion = English;
258 | hasScannedForEncodings = 0;
259 | knownRegions = (
260 | en,
261 | Base,
262 | );
263 | mainGroup = 6003F581195388D10070C39A;
264 | productRefGroup = 6003F58B195388D20070C39A /* Products */;
265 | projectDirPath = "";
266 | projectRoot = "";
267 | targets = (
268 | 6003F589195388D20070C39A /* ParallaxBlur */,
269 | 6003F5AD195388D20070C39A /* Tests */,
270 | );
271 | };
272 | /* End PBXProject section */
273 |
274 | /* Begin PBXResourcesBuildPhase section */
275 | 6003F588195388D20070C39A /* Resources */ = {
276 | isa = PBXResourcesBuildPhase;
277 | buildActionMask = 2147483647;
278 | files = (
279 | 6003F5A4195388D20070C39A /* Main_iPad.storyboard in Resources */,
280 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */,
281 | 6003F5A1195388D20070C39A /* Main_iPhone.storyboard in Resources */,
282 | D86AEC5719A7C61B00D714AA /* meatballs.jpeg in Resources */,
283 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */,
284 | D85B254C19ACEA3400C8F2AA /* awesome.jpg in Resources */,
285 | );
286 | runOnlyForDeploymentPostprocessing = 0;
287 | };
288 | 6003F5AC195388D20070C39A /* Resources */ = {
289 | isa = PBXResourcesBuildPhase;
290 | buildActionMask = 2147483647;
291 | files = (
292 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */,
293 | );
294 | runOnlyForDeploymentPostprocessing = 0;
295 | };
296 | /* End PBXResourcesBuildPhase section */
297 |
298 | /* Begin PBXShellScriptBuildPhase section */
299 | 6E271D7329144D76B677A3E7 /* Check Pods Manifest.lock */ = {
300 | isa = PBXShellScriptBuildPhase;
301 | buildActionMask = 2147483647;
302 | files = (
303 | );
304 | inputPaths = (
305 | );
306 | name = "Check Pods Manifest.lock";
307 | outputPaths = (
308 | );
309 | runOnlyForDeploymentPostprocessing = 0;
310 | shellPath = /bin/sh;
311 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
312 | showEnvVarsInLog = 0;
313 | };
314 | 8B3F606355C24932B7665AB4 /* Copy Pods Resources */ = {
315 | isa = PBXShellScriptBuildPhase;
316 | buildActionMask = 2147483647;
317 | files = (
318 | );
319 | inputPaths = (
320 | );
321 | name = "Copy Pods Resources";
322 | outputPaths = (
323 | );
324 | runOnlyForDeploymentPostprocessing = 0;
325 | shellPath = /bin/sh;
326 | shellScript = "\"${SRCROOT}/Pods/Pods-ParallaxBlur-resources.sh\"\n";
327 | showEnvVarsInLog = 0;
328 | };
329 | 8F284CA2D05E41788921CE5C /* Check Pods Manifest.lock */ = {
330 | isa = PBXShellScriptBuildPhase;
331 | buildActionMask = 2147483647;
332 | files = (
333 | );
334 | inputPaths = (
335 | );
336 | name = "Check Pods Manifest.lock";
337 | outputPaths = (
338 | );
339 | runOnlyForDeploymentPostprocessing = 0;
340 | shellPath = /bin/sh;
341 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
342 | showEnvVarsInLog = 0;
343 | };
344 | B96932ED9877443E82BE9A14 /* Copy Pods Resources */ = {
345 | isa = PBXShellScriptBuildPhase;
346 | buildActionMask = 2147483647;
347 | files = (
348 | );
349 | inputPaths = (
350 | );
351 | name = "Copy Pods Resources";
352 | outputPaths = (
353 | );
354 | runOnlyForDeploymentPostprocessing = 0;
355 | shellPath = /bin/sh;
356 | shellScript = "\"${SRCROOT}/Pods/Pods-Tests-resources.sh\"\n";
357 | showEnvVarsInLog = 0;
358 | };
359 | /* End PBXShellScriptBuildPhase section */
360 |
361 | /* Begin PBXSourcesBuildPhase section */
362 | 6003F586195388D20070C39A /* Sources */ = {
363 | isa = PBXSourcesBuildPhase;
364 | buildActionMask = 2147483647;
365 | files = (
366 | 6003F59E195388D20070C39A /* JPBAppDelegate.m in Sources */,
367 | 6003F5A7195388D20070C39A /* JPBViewController.m in Sources */,
368 | D85B254A19ACE9D000C8F2AA /* CustomHeaderViewController.m in Sources */,
369 | 6003F59A195388D20070C39A /* main.m in Sources */,
370 | );
371 | runOnlyForDeploymentPostprocessing = 0;
372 | };
373 | 6003F5AA195388D20070C39A /* Sources */ = {
374 | isa = PBXSourcesBuildPhase;
375 | buildActionMask = 2147483647;
376 | files = (
377 | 6003F5BC195388D20070C39A /* Tests.m in Sources */,
378 | );
379 | runOnlyForDeploymentPostprocessing = 0;
380 | };
381 | /* End PBXSourcesBuildPhase section */
382 |
383 | /* Begin PBXTargetDependency section */
384 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = {
385 | isa = PBXTargetDependency;
386 | target = 6003F589195388D20070C39A /* ParallaxBlur */;
387 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */;
388 | };
389 | /* End PBXTargetDependency section */
390 |
391 | /* Begin PBXVariantGroup section */
392 | 6003F596195388D20070C39A /* InfoPlist.strings */ = {
393 | isa = PBXVariantGroup;
394 | children = (
395 | 6003F597195388D20070C39A /* en */,
396 | );
397 | name = InfoPlist.strings;
398 | sourceTree = "";
399 | };
400 | 6003F59F195388D20070C39A /* Main_iPhone.storyboard */ = {
401 | isa = PBXVariantGroup;
402 | children = (
403 | 6003F5A0195388D20070C39A /* Base */,
404 | );
405 | name = Main_iPhone.storyboard;
406 | sourceTree = "";
407 | };
408 | 6003F5A2195388D20070C39A /* Main_iPad.storyboard */ = {
409 | isa = PBXVariantGroup;
410 | children = (
411 | 6003F5A3195388D20070C39A /* Base */,
412 | );
413 | name = Main_iPad.storyboard;
414 | sourceTree = "";
415 | };
416 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = {
417 | isa = PBXVariantGroup;
418 | children = (
419 | 6003F5B9195388D20070C39A /* en */,
420 | );
421 | name = InfoPlist.strings;
422 | sourceTree = "";
423 | };
424 | /* End PBXVariantGroup section */
425 |
426 | /* Begin XCBuildConfiguration section */
427 | 6003F5BD195388D20070C39A /* Debug */ = {
428 | isa = XCBuildConfiguration;
429 | buildSettings = {
430 | ALWAYS_SEARCH_USER_PATHS = NO;
431 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
432 | CLANG_CXX_LIBRARY = "libc++";
433 | CLANG_ENABLE_MODULES = YES;
434 | CLANG_ENABLE_OBJC_ARC = YES;
435 | CLANG_WARN_BOOL_CONVERSION = YES;
436 | CLANG_WARN_CONSTANT_CONVERSION = YES;
437 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
438 | CLANG_WARN_EMPTY_BODY = YES;
439 | CLANG_WARN_ENUM_CONVERSION = YES;
440 | CLANG_WARN_INT_CONVERSION = YES;
441 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
442 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
443 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
444 | COPY_PHASE_STRIP = NO;
445 | GCC_C_LANGUAGE_STANDARD = gnu99;
446 | GCC_DYNAMIC_NO_PIC = NO;
447 | GCC_OPTIMIZATION_LEVEL = 0;
448 | GCC_PREPROCESSOR_DEFINITIONS = (
449 | "DEBUG=1",
450 | "$(inherited)",
451 | );
452 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
453 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
454 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
455 | GCC_WARN_UNDECLARED_SELECTOR = YES;
456 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
457 | GCC_WARN_UNUSED_FUNCTION = YES;
458 | GCC_WARN_UNUSED_VARIABLE = YES;
459 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
460 | ONLY_ACTIVE_ARCH = YES;
461 | SDKROOT = iphoneos;
462 | TARGETED_DEVICE_FAMILY = "1,2";
463 | };
464 | name = Debug;
465 | };
466 | 6003F5BE195388D20070C39A /* Release */ = {
467 | isa = XCBuildConfiguration;
468 | buildSettings = {
469 | ALWAYS_SEARCH_USER_PATHS = NO;
470 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
471 | CLANG_CXX_LIBRARY = "libc++";
472 | CLANG_ENABLE_MODULES = YES;
473 | CLANG_ENABLE_OBJC_ARC = YES;
474 | CLANG_WARN_BOOL_CONVERSION = YES;
475 | CLANG_WARN_CONSTANT_CONVERSION = YES;
476 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
477 | CLANG_WARN_EMPTY_BODY = YES;
478 | CLANG_WARN_ENUM_CONVERSION = YES;
479 | CLANG_WARN_INT_CONVERSION = YES;
480 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
481 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
482 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
483 | COPY_PHASE_STRIP = YES;
484 | ENABLE_NS_ASSERTIONS = NO;
485 | GCC_C_LANGUAGE_STANDARD = gnu99;
486 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
487 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
488 | GCC_WARN_UNDECLARED_SELECTOR = YES;
489 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
490 | GCC_WARN_UNUSED_FUNCTION = YES;
491 | GCC_WARN_UNUSED_VARIABLE = YES;
492 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
493 | SDKROOT = iphoneos;
494 | TARGETED_DEVICE_FAMILY = "1,2";
495 | VALIDATE_PRODUCT = YES;
496 | };
497 | name = Release;
498 | };
499 | 6003F5C0195388D20070C39A /* Debug */ = {
500 | isa = XCBuildConfiguration;
501 | baseConfigurationReference = CF6059F037494BF2A04110BD /* Pods-ParallaxBlur.xcconfig */;
502 | buildSettings = {
503 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
504 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
505 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
506 | GCC_PREFIX_HEADER = "ParallaxBlur/ParallaxBlur-Prefix.pch";
507 | INFOPLIST_FILE = "ParallaxBlur/ParallaxBlur-Info.plist";
508 | PRODUCT_NAME = "$(TARGET_NAME)";
509 | WRAPPER_EXTENSION = app;
510 | };
511 | name = Debug;
512 | };
513 | 6003F5C1195388D20070C39A /* Release */ = {
514 | isa = XCBuildConfiguration;
515 | baseConfigurationReference = CF6059F037494BF2A04110BD /* Pods-ParallaxBlur.xcconfig */;
516 | buildSettings = {
517 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
518 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
519 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
520 | GCC_PREFIX_HEADER = "ParallaxBlur/ParallaxBlur-Prefix.pch";
521 | INFOPLIST_FILE = "ParallaxBlur/ParallaxBlur-Info.plist";
522 | PRODUCT_NAME = "$(TARGET_NAME)";
523 | WRAPPER_EXTENSION = app;
524 | };
525 | name = Release;
526 | };
527 | 6003F5C3195388D20070C39A /* Debug */ = {
528 | isa = XCBuildConfiguration;
529 | baseConfigurationReference = 25175DF437024927A43A8F3C /* Pods-Tests.xcconfig */;
530 | buildSettings = {
531 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ParallaxBlur.app/ParallaxBlur";
532 | FRAMEWORK_SEARCH_PATHS = (
533 | "$(SDKROOT)/Developer/Library/Frameworks",
534 | "$(inherited)",
535 | "$(DEVELOPER_FRAMEWORKS_DIR)",
536 | );
537 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
538 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
539 | GCC_PREPROCESSOR_DEFINITIONS = (
540 | "DEBUG=1",
541 | "$(inherited)",
542 | );
543 | INFOPLIST_FILE = "Tests/Tests-Info.plist";
544 | PRODUCT_NAME = "$(TARGET_NAME)";
545 | TEST_HOST = "$(BUNDLE_LOADER)";
546 | WRAPPER_EXTENSION = xctest;
547 | };
548 | name = Debug;
549 | };
550 | 6003F5C4195388D20070C39A /* Release */ = {
551 | isa = XCBuildConfiguration;
552 | baseConfigurationReference = 25175DF437024927A43A8F3C /* Pods-Tests.xcconfig */;
553 | buildSettings = {
554 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ParallaxBlur.app/ParallaxBlur";
555 | FRAMEWORK_SEARCH_PATHS = (
556 | "$(SDKROOT)/Developer/Library/Frameworks",
557 | "$(inherited)",
558 | "$(DEVELOPER_FRAMEWORKS_DIR)",
559 | );
560 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
561 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
562 | INFOPLIST_FILE = "Tests/Tests-Info.plist";
563 | PRODUCT_NAME = "$(TARGET_NAME)";
564 | TEST_HOST = "$(BUNDLE_LOADER)";
565 | WRAPPER_EXTENSION = xctest;
566 | };
567 | name = Release;
568 | };
569 | /* End XCBuildConfiguration section */
570 |
571 | /* Begin XCConfigurationList section */
572 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "ParallaxBlur" */ = {
573 | isa = XCConfigurationList;
574 | buildConfigurations = (
575 | 6003F5BD195388D20070C39A /* Debug */,
576 | 6003F5BE195388D20070C39A /* Release */,
577 | );
578 | defaultConfigurationIsVisible = 0;
579 | defaultConfigurationName = Release;
580 | };
581 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "ParallaxBlur" */ = {
582 | isa = XCConfigurationList;
583 | buildConfigurations = (
584 | 6003F5C0195388D20070C39A /* Debug */,
585 | 6003F5C1195388D20070C39A /* Release */,
586 | );
587 | defaultConfigurationIsVisible = 0;
588 | defaultConfigurationName = Release;
589 | };
590 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Tests" */ = {
591 | isa = XCConfigurationList;
592 | buildConfigurations = (
593 | 6003F5C3195388D20070C39A /* Debug */,
594 | 6003F5C4195388D20070C39A /* Release */,
595 | );
596 | defaultConfigurationIsVisible = 0;
597 | defaultConfigurationName = Release;
598 | };
599 | /* End XCConfigurationList section */
600 | };
601 | rootObject = 6003F582195388D10070C39A /* Project object */;
602 | }
603 |
--------------------------------------------------------------------------------