Skip to content

Commit

Permalink
fixed example porject
Browse files Browse the repository at this point in the history
  • Loading branch information
shams-ahmed committed Nov 8, 2015
1 parent c9e6f46 commit 5603453
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 30 deletions.
25 changes: 8 additions & 17 deletions Example/SAStickyHeaderExample.xcodeproj/project.pbxproj
Expand Up @@ -42,12 +42,12 @@
100DAD551BD3CEBC00170A84 /* SAStickyHeaderExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SAStickyHeaderExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
100DAD591BD3CEBC00170A84 /* SAStickyHeaderExampleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SAStickyHeaderExampleUITests.swift; sourceTree = "<group>"; };
100DAD5B1BD3CEBC00170A84 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
100DAD871BD45A0200170A84 /* SAStickyHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SAStickyHeaderView.swift; path = Classes/SAStickyHeaderView.swift; sourceTree = "<group>"; };
100DAD881BD45A0200170A84 /* SAStickyHeaderView+Image.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Image.swift"; path = "Classes/SAStickyHeaderView+Image.swift"; sourceTree = "<group>"; };
100DAD891BD45A0200170A84 /* SAStickyHeaderView+Gesture.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Gesture.swift"; path = "Classes/SAStickyHeaderView+Gesture.swift"; sourceTree = "<group>"; };
100DAD8A1BD45A0200170A84 /* SAStickyHeaderView+Scroll.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Scroll.swift"; path = "Classes/SAStickyHeaderView+Scroll.swift"; sourceTree = "<group>"; };
100DAD8F1BD4613500170A84 /* SAStickyHeaderView+Observe.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Observe.swift"; path = "Classes/SAStickyHeaderView+Observe.swift"; sourceTree = "<group>"; };
107D7C591BEEC5C000859F3F /* SAStickyHeaderView+Helper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Helper.swift"; path = "Classes/SAStickyHeaderView+Helper.swift"; sourceTree = "<group>"; };
100DAD871BD45A0200170A84 /* SAStickyHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SAStickyHeaderView.swift; path = ../Pod/Classes/SAStickyHeaderView.swift; sourceTree = "<group>"; };
100DAD881BD45A0200170A84 /* SAStickyHeaderView+Image.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Image.swift"; path = "../Pod/Classes/SAStickyHeaderView+Image.swift"; sourceTree = "<group>"; };
100DAD891BD45A0200170A84 /* SAStickyHeaderView+Gesture.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Gesture.swift"; path = "../Pod/Classes/SAStickyHeaderView+Gesture.swift"; sourceTree = "<group>"; };
100DAD8A1BD45A0200170A84 /* SAStickyHeaderView+Scroll.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Scroll.swift"; path = "../Pod/Classes/SAStickyHeaderView+Scroll.swift"; sourceTree = "<group>"; };
100DAD8F1BD4613500170A84 /* SAStickyHeaderView+Observe.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Observe.swift"; path = "../Pod/Classes/SAStickyHeaderView+Observe.swift"; sourceTree = "<group>"; };
107D7C591BEEC5C000859F3F /* SAStickyHeaderView+Helper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "SAStickyHeaderView+Helper.swift"; path = "../Pod/Classes/SAStickyHeaderView+Helper.swift"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -92,7 +92,6 @@
children = (
100DAD441BD3CEBC00170A84 /* AppDelegate.swift */,
100DAD461BD3CEBC00170A84 /* ViewController.swift */,
100DAD481BD3CEBC00170A84 /* Main.storyboard */,
100DAD641BD3CECB00170A84 /* Supporting Files */,
);
path = SAStickyHeaderExample;
Expand All @@ -110,6 +109,7 @@
100DAD641BD3CECB00170A84 /* Supporting Files */ = {
isa = PBXGroup;
children = (
100DAD481BD3CEBC00170A84 /* Main.storyboard */,
100DAD4B1BD3CEBC00170A84 /* Assets.xcassets */,
100DAD4D1BD3CEBC00170A84 /* LaunchScreen.storyboard */,
100DAD501BD3CEBC00170A84 /* Info.plist */,
Expand All @@ -126,14 +126,6 @@
sourceTree = "<group>";
};
100DAD661BD3CEE100170A84 /* SAStickyHeader */ = {
isa = PBXGroup;
children = (
100DAD781BD459E800170A84 /* Pod */,
);
name = SAStickyHeader;
sourceTree = "<group>";
};
100DAD781BD459E800170A84 /* Pod */ = {
isa = PBXGroup;
children = (
100DAD871BD45A0200170A84 /* SAStickyHeaderView.swift */,
Expand All @@ -143,8 +135,7 @@
100DAD8A1BD45A0200170A84 /* SAStickyHeaderView+Scroll.swift */,
107D7C591BEEC5C000859F3F /* SAStickyHeaderView+Helper.swift */,
);
name = Pod;
path = ../Pod;
name = SAStickyHeader;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand Down
4 changes: 2 additions & 2 deletions Example/SAStickyHeaderExample/Info.plist
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4.2</string>
<string>0.5.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>042</string>
<string>050</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
23 changes: 13 additions & 10 deletions Example/SAStickyHeaderExample/ViewController.swift
Expand Up @@ -9,7 +9,7 @@
import UIKit

/**
Github Example images from: https://octodex.github.com/
Github example images from: https://octodex.github.com
*/
enum SASGithubImage: String {
case Gracehoppertocat
Expand All @@ -27,22 +27,25 @@ class ViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()

// list of github images for example, for DEMO purposes ive loadded everything first but this can easiler be added afterworld with images.append()
let images = [UIImage(named: SASGithubImage.Gracehoppertocat.rawValue), UIImage(named: SASGithubImage.HipsterPartycat.rawValue), UIImage(named: SASGithubImage.Mountietocat.rawValue), UIImage(named: SASGithubImage.Octoliberty.rawValue), UIImage(named: SASGithubImage.ProfessortocatV2.rawValue)]

// add SAStickyHeaderView with a frame and optional image array.
tableView.tableHeaderView = SAStickyHeaderView(frame: CGRectMake(0, 0, CGRectGetWidth(view.frame), 400), table: tableView, image: images)
setupView()
}

override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
}

override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
}

override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
}

// MARK:
// MARK: Setup

func setupView() {
// list of github images for example, for DEMO purposes i've loaded everything first but can easily be added afterworld with images.append()
let images = [UIImage(named: SASGithubImage.Gracehoppertocat.rawValue), UIImage(named: SASGithubImage.HipsterPartycat.rawValue), UIImage(named: SASGithubImage.Mountietocat.rawValue), UIImage(named: SASGithubImage.Octoliberty.rawValue), UIImage(named: SASGithubImage.ProfessortocatV2.rawValue)]

// add SAStickyHeaderView with a frame and optional image array.
tableView.tableHeaderView = SAStickyHeaderView(frame: CGRectMake(0, 0, CGRectGetWidth(view.frame), 400), table: tableView, image: images)
}
}
2 changes: 1 addition & 1 deletion SAStickyHeader.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SAStickyHeader"
s.version = "0.4.2"
s.version = "0.5.0"
s.summary = "A very simple sticky header with multiple image support via swipe gestures"

s.description = <<-DESC
Expand Down

0 comments on commit 5603453

Please sign in to comment.